diff --git a/package.json b/package.json index 0f84516f1..e9e4ba501 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "copy-pem": "mkdir -p dist && cp -u ./wallet.pem ./dist/wallet.pem | true", "test": "jest --detectOpenHandles", "test:watch": "jest --watch", - "test:cov": "jest --coverage", + "test:cov": "jest --coverage --config ./test/jest-config.json --forceExit", "clear_jest": "jest --clearCache", "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", "test:e2e": "NODE_ENV=test-e2e jest --config ./test/jest-e2e.json --forceExit --maxWorkers=4", diff --git a/test/jest-config.json b/test/jest-config.json new file mode 100644 index 000000000..5e0712ddd --- /dev/null +++ b/test/jest-config.json @@ -0,0 +1,11 @@ +{ + "moduleFileExtensions": ["js", "json", "ts"], + "modulePaths": [""], + "rootDir": "../", + "testRegex": "src/.*spec.ts$", + "testEnvironment": "node", + "transform": { + "^.+\\.(t|j)s$": "ts-jest" + }, + "coverageDirectory": "./coverage/unit" +}