diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-05-26 13:58:07 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-05-26 13:58:07 +0200 |
| commit | fc6cf6169868e60c189e4b243330c3717ff159f3 (patch) | |
| tree | 3f6dea9c1420e23756257b5abea27ec9ed92d58a /overlays/spm/frontend/karma.conf.js | |
| parent | 84f2affd66a0ff3947b91a30308cb8e6a8ff7594 (diff) | |
| download | nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar.gz nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar.bz2 nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar.xz nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.zip | |
...
Diffstat (limited to 'overlays/spm/frontend/karma.conf.js')
| -rw-r--r-- | overlays/spm/frontend/karma.conf.js | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/overlays/spm/frontend/karma.conf.js b/overlays/spm/frontend/karma.conf.js new file mode 100644 index 00000000..b3c71204 --- /dev/null +++ b/overlays/spm/frontend/karma.conf.js | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | // Karma configuration file, see link for more information | ||
| 2 | // https://karma-runner.github.io/1.0/config/configuration-file.html | ||
| 3 | |||
| 4 | module.exports = function (config) { | ||
| 5 | config.set({ | ||
| 6 | basePath: '', | ||
| 7 | frameworks: ['jasmine', '@angular-devkit/build-angular'], | ||
| 8 | plugins: [ | ||
| 9 | require('karma-jasmine'), | ||
| 10 | require('karma-chrome-launcher'), | ||
| 11 | require('karma-jasmine-html-reporter'), | ||
| 12 | require('karma-coverage'), | ||
| 13 | require('@angular-devkit/build-angular/plugins/karma') | ||
| 14 | ], | ||
| 15 | client: { | ||
| 16 | jasmine: { | ||
| 17 | // you can add configuration options for Jasmine here | ||
| 18 | // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html | ||
| 19 | // for example, you can disable the random execution with `random: false` | ||
| 20 | // or set a specific seed with `seed: 4321` | ||
| 21 | }, | ||
| 22 | clearContext: false // leave Jasmine Spec Runner output visible in browser | ||
| 23 | }, | ||
| 24 | jasmineHtmlReporter: { | ||
| 25 | suppressAll: true // removes the duplicated traces | ||
| 26 | }, | ||
| 27 | coverageReporter: { | ||
| 28 | dir: require('path').join(__dirname, './coverage/spm-frontend'), | ||
| 29 | subdir: '.', | ||
| 30 | reporters: [ | ||
| 31 | { type: 'html' }, | ||
| 32 | { type: 'text-summary' } | ||
| 33 | ] | ||
| 34 | }, | ||
| 35 | reporters: ['progress', 'kjhtml'], | ||
| 36 | port: 9876, | ||
| 37 | colors: true, | ||
| 38 | logLevel: config.LOG_INFO, | ||
| 39 | autoWatch: true, | ||
| 40 | browsers: ['Chrome'], | ||
| 41 | singleRun: false, | ||
| 42 | restartOnFileChange: true | ||
| 43 | }); | ||
| 44 | }; | ||
