Adaptation configuration karma.js pour prise en compte des scripts présents dans des sous-répertoires.
This commit is contained in:
parent
efa0c77213
commit
d7ae990e07
@ -14,18 +14,18 @@ module.exports = function(config) {
|
|||||||
frameworks: ["jasmine", "karma-typescript"],
|
frameworks: ["jasmine", "karma-typescript"],
|
||||||
|
|
||||||
// list of files / patterns to load in the browser
|
// 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/" },
|
proxies: { "/datas/": "http://localhost:9876/base/tests/datas/" },
|
||||||
|
|
||||||
// list of files / patterns to exclude
|
// list of files / patterns to exclude
|
||||||
exclude: [ "src/example*" ],
|
exclude: [ "src/demo/*.ts" ],
|
||||||
|
|
||||||
// preprocess matching files before serving them to the browser
|
// preprocess matching files before serving them to the browser
|
||||||
// available preprocessors: https://www.npmjs.com/search?q=keywords:karma-preprocessor
|
// available preprocessors: https://www.npmjs.com/search?q=keywords:karma-preprocessor
|
||||||
preprocessors: {
|
preprocessors: {
|
||||||
'src/*.ts': [ 'karma-typescript' ],
|
'src/**/*.ts': [ 'karma-typescript' ],
|
||||||
'tests/*.ts': [ 'karma-typescript' ]
|
'tests/**/*Spec.ts': [ 'karma-typescript' ]
|
||||||
},
|
},
|
||||||
|
|
||||||
// test results reporter to use
|
// test results reporter to use
|
||||||
|
Loading…
Reference in New Issue
Block a user