Skip to content

Commit

Permalink
Add Angular paths to Karma config.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Borisov committed May 8, 2019
1 parent d49fa91 commit b732c26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/web-console/frontend/test/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = (/** @type {import('karma').Config} */ config) => {
files: [
'node_modules/angular/angular.js',
'node_modules/angular-mocks/angular-mocks.js',
'app/**/*.spec.+(js|ts)',
'+(app|app-angular)/**/*.spec.+(js|ts)',
'test/**/*.test.js'
],

Expand All @@ -45,7 +45,7 @@ module.exports = (/** @type {import('karma').Config} */ config) => {
// Preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor.
preprocessors: {
'+(app|test)/**/*.+(js|ts)': ['webpack']
'+(app|app-angular|test)/**/*.+(js|ts)': ['webpack']
},

webpack: testCfg,
Expand Down

0 comments on commit b732c26

Please sign in to comment.