From d7ae990e07e132ba6138f51fa8fa7277afacacd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabrice=20PENHO=C3=8BT?= Date: Thu, 9 Dec 2021 16:03:50 +0100 Subject: [PATCH] =?UTF-8?q?Adaptation=20configuration=20karma.js=20pour=20?= =?UTF-8?q?prise=20en=20compte=20des=20scripts=20pr=C3=A9sents=20dans=20de?= =?UTF-8?q?s=20sous-r=C3=A9pertoires.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- karma.conf.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index 5558ac8..50de33d 100644 --- a/karma.conf.js +++ b/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