From ec4f95457ec430838feeae6da48d0fd011ddffa9 Mon Sep 17 00:00:00 2001 From: golabek Date: Mon, 28 Jan 2019 09:34:48 +0100 Subject: Introduce JS unit tests into VID maven -> npm -> gulp -> jest frameworks added in a mentioned order. Change-Id: I1865228973eb31188fb052e8c9629f0ac01e48a7 Issue-ID: VID-391 Signed-off-by: Tomasz Golabek --- vid-app-common/jest.config.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 vid-app-common/jest.config.js (limited to 'vid-app-common/jest.config.js') diff --git a/vid-app-common/jest.config.js b/vid-app-common/jest.config.js new file mode 100644 index 000000000..e9ca59b11 --- /dev/null +++ b/vid-app-common/jest.config.js @@ -0,0 +1,16 @@ +module.exports = { + verbose: true, + roots: [ + "/src/main/webapp/app" + ], + modulePaths: [ + "/src/main/webapp/app/vid/external" + ], + setupFilesAfterEnv: ["/test-config.js"], + collectCoverage: true, + collectCoverageFrom: [ + "src/**/*.js", + "!**/node_modules/**", + "!**/vendor/**" + ] +}; \ No newline at end of file -- cgit 1.2.3-korg