Skip to content

Commit ea4b586

Browse files
committed
fix(Testing): suppress 404 warnings on assets when running unit tests
1 parent a85e018 commit ea4b586

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

karma.conf.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,16 @@ module.exports = function(config) {
3434
{ pattern: 'dist/dev/**/*.js', included: false, watched: true },
3535
{ pattern: 'node_modules/systemjs/dist/system-polyfills.js', included: false, watched: false }, // PhantomJS2 (and possibly others) might require it
3636

37+
// suppress annoying 404 warnings for resources, images, etc.
38+
{ pattern: 'dist/dev/assets/**/*', watched: false, included: false, served: true },
39+
3740
'test-main.js'
3841
],
3942

43+
// must go along with above, suppress annoying 404 warnings.
44+
proxies: {
45+
'/assets/': '/base/dist/dev/assets/'
46+
},
4047

4148
// list of files to exclude
4249
exclude: [

0 commit comments

Comments
 (0)