diff --git a/package.json b/package.json index b86d4f69..e48d002e 100644 --- a/package.json +++ b/package.json @@ -31,22 +31,22 @@ "module", "js" ], - "main": "./angular-notifier.umd.js", - "module": "./angular-notifier.es5.js", - "es2015": "./angular-notifier.js", - "typings": "./angular-notifier.d.ts", + "main": "angular-notifier.umd.js", + "module": "angular-notifier.es5.js", + "es2015": "angular-notifier.js", + "typings": "angular-notifier.d.ts", "scripts": { "codecov": "codecov", "gulp": "gulp", "webpack-dev-server": "webpack-dev-server", - "start": "webpack --config ./tools/webpack/webpack.dll.config.js --hide-modules && webpack-dev-server --config ./tools/webpack/webpack.dev.config.js", - "test": "jest --config jest.config.json", + "start": "webpack --config tools/webpack/webpack.dll.config.js --hide-modules && webpack-dev-server --config tools/webpack/webpack.dev.config.js", + "test": "jest --config tools/jest/jest.config.json", "lint": "gulp lint", "build": "gulp run", "ci:automatic-release": "automatic-release", "ci:post-automatic-release": "gulp env:release", - "ci:coverage": "codecov -f ./coverage/coverage-final.json", - "ci:test": "jest --config jest.config.json --runInBand --no-cache" + "ci:coverage": "codecov -f coverage/coverage-final.json", + "ci:test": "jest --config tools/jest/jest.config.json --runInBand --no-cache" }, "peerDependencies": { "@angular/common": ">= 4.0.0 < 5.0.0", diff --git a/jest.config.json b/tools/jest/jest.config.json similarity index 96% rename from jest.config.json rename to tools/jest/jest.config.json index e6117e8e..2050722f 100644 --- a/jest.config.json +++ b/tools/jest/jest.config.json @@ -20,6 +20,7 @@ "moduleNameMapper": { "(.*)": "/src/$1" }, + "rootDir": "../../", "transformIgnorePatterns": [ "node_modules/(?!@ngrx)" ],