From e7154335e26e3e68bedd7ef09831982a33ab3aeb Mon Sep 17 00:00:00 2001 From: Idan Amit Date: Mon, 13 Aug 2018 17:58:53 +0300 Subject: Added tests to sdc-pubsub Added tests files and coverage to sdc-pubsub Change-Id: I45146ae8d18f229d92afb60208532a1a0ca4192a Issue-ID: SDC-1542 Signed-off-by: Idan Amit --- jest.config.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 jest.config.js (limited to 'jest.config.js') diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 0000000..f4b1f87 --- /dev/null +++ b/jest.config.js @@ -0,0 +1,20 @@ +module.exports = { + "roots": [ + "/lib" + ], + "transform": { + "^.+\\.ts?$": "ts-jest" + }, + "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.ts?$", + "moduleFileExtensions": [ + "ts", + "tsx", + "js", + "jsx", + "json", + "node" + ], + "testURL": "http://localhost/", + "coverageDirectory": "/coverage", + "testResultsProcessor": "jest-sonar-reporter" +}; \ No newline at end of file -- cgit 1.2.3-korg