Browse Source

Adaptation configuration karma.js pour prise en compte des scripts présents dans des sous-répertoires.

master
Fabrice PENHOËT 7 months ago
parent
commit
d7ae990e07
  1. 8
      karma.conf.js

8
karma.conf.js

@ -14,18 +14,18 @@ module.exports = function(config) {
frameworks: ["jasmine", "karma-typescript"],
// list of files / patterns to load in the browser
files: [ "src/*.ts", "tests/*.ts" , { pattern: 'tests/datas/*', watched: true, included: false, served: true } ],
files: [ "src/**/*.ts", "tests/**/*Spec.ts" , { pattern: 'tests/datas/*', watched: true, included: false, served: true } ],
proxies: { "/datas/": "http://localhost:9876/base/tests/datas/" },
// list of files / patterns to exclude
exclude: [ "src/example*" ],
exclude: [ "src/demo/*.ts" ],
// preprocess matching files before serving them to the browser
// available preprocessors: https://www.npmjs.com/search?q=keywords:karma-preprocessor
preprocessors: {
'src/*.ts': [ 'karma-typescript' ],
'tests/*.ts': [ 'karma-typescript' ]
'src/**/*.ts': [ 'karma-typescript' ],
'tests/**/*Spec.ts': [ 'karma-typescript' ]
},
// test results reporter to use

Loading…
Cancel
Save