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

This commit is contained in:
Fabrice PENHOËT 2021-12-09 16:03:50 +01:00
parent efa0c77213
commit d7ae990e07
1 changed files with 4 additions and 4 deletions

View File

@ -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