diff --git a/pkg/jestconfig.json b/pkg/jestconfig.json index 20c25c0f7..ea34bfc7e 100644 --- a/pkg/jestconfig.json +++ b/pkg/jestconfig.json @@ -1,7 +1,11 @@ { "transform": { - "^.+\\.(t|j)sx?$": "ts-jest" + "^.+\\.tsx?$": "ts-jest" }, "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", + "testPathIgnorePatterns": [ + "\/node_modules\/", + "\/lib\/" + ], "moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"] } diff --git a/pkg/package.json b/pkg/package.json index cb7fe3982..c01f6ac16 100644 --- a/pkg/package.json +++ b/pkg/package.json @@ -26,7 +26,7 @@ "prepare": "yarn run build", "prepublishOnly": "yarn test && yarn run lint", "preversion": "yarn run lint", - "test": "jest --config jestconfig.json --passWithNoTests", + "test": "jest --config jestconfig.json", "lint": "eslint -c ../../sonar/.eslintrc.js src/**/* --ext .js,.ts && tsc --noemit", "fix": "eslint -c ../../sonar/.eslintrc.js src/**/* --fix --ext .js,.ts", "run": "yarn run build && node lib/cli.js" @@ -41,4 +41,4 @@ "dependencies": { "@types/node": "^12.12.12" } -} \ No newline at end of file +}