Commits

Alexandre Vryghem authored bfaea741d5e
Throw error for tests without expectations
No tags

karma.conf.js

Modified
8 8 plugins: [
9 9 require('karma-jasmine'),
10 10 require('karma-chrome-launcher'),
11 11 require('karma-jasmine-html-reporter'),
12 12 require('karma-coverage-istanbul-reporter'),
13 13 require('@angular-devkit/build-angular/plugins/karma'),
14 14 require('karma-mocha-reporter'),
15 15 ],
16 16 client: {
17 17 clearContext: false, // leave Jasmine Spec Runner output visible in browser
18 - captureConsole: false
18 + captureConsole: false,
19 + jasmine: {
20 + failSpecWithNoExpectations: true
21 + }
19 22 },
20 23 coverageIstanbulReporter: {
21 24 dir: require('path').join(__dirname, './coverage/dspace-angular'),
22 25 reports: ['html', 'lcovonly', 'text-summary'],
23 26 fixWebpackSourcePaths: true
24 27 },
25 28 reporters: ['mocha', 'kjhtml', 'coverage-istanbul'],
26 29 mochaReporter: {
27 30 ignoreSkipped: true,
28 31 output: 'autowatch'

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut