From 93f323a1d6ee5f700aaef5c347639a9c0de9253e Mon Sep 17 00:00:00 2001 From: Idan Amit Date: Sun, 19 Aug 2018 18:46:25 +0300 Subject: Added tests to sdc-pubsub Changed sonar parameters to integrate with sonarTS plugin Change-Id: I2e725632e0964d76aa397938f34ab07bbd67d5f0 Issue-ID: SDC-1542 Signed-off-by: Idan Amit --- .gitignore | 1 + .npmignore | 1 + jest.config.js | 4 ---- pom.xml | 13 +++++++------ 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 3db6931..67b1132 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ sdc-pubsub.iml node/ !/jest.config.js /coverage/ +/target/ diff --git a/.npmignore b/.npmignore index f72406b..3ff9fe3 100644 --- a/.npmignore +++ b/.npmignore @@ -16,3 +16,4 @@ node/ pom.xml /coverage/ /jest.config.js +/target/ diff --git a/jest.config.js b/jest.config.js index f4b1f87..3cf55c2 100644 --- a/jest.config.js +++ b/jest.config.js @@ -8,11 +8,7 @@ module.exports = { "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.ts?$", "moduleFileExtensions": [ "ts", - "tsx", "js", - "jsx", - "json", - "node" ], "testURL": "http://localhost/", "coverageDirectory": "/coverage", diff --git a/pom.xml b/pom.xml index 55fca90..cf2dcfb 100644 --- a/pom.xml +++ b/pom.xml @@ -12,12 +12,13 @@ https://nexus.onap.org 176c31dfe190a - ${basedir}/node - ${basedir}/lib - ${basedir}/lib - ${basedir}/lib/*.spec.ts - ${basedir}/coverage/lcov.info - ${basedir}/coverage/test-report.xml + node + lib + lib/*.ts + lib + lib/*.spec.ts + coverage/lcov.info + coverage/test-report.xml -- cgit 1.2.3-korg