Skip to content

Commit 1b8019f

Browse files
authored
chore(jest): Fix jest config path (#34)
- Revert jest config path (by defining the rootDir property, see thymikee/jest-preset-angular#59)
1 parent 7b82d35 commit 1b8019f

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,22 @@
3131
"module",
3232
"js"
3333
],
34-
"main": "./angular-notifier.umd.js",
35-
"module": "./angular-notifier.es5.js",
36-
"es2015": "./angular-notifier.js",
37-
"typings": "./angular-notifier.d.ts",
34+
"main": "angular-notifier.umd.js",
35+
"module": "angular-notifier.es5.js",
36+
"es2015": "angular-notifier.js",
37+
"typings": "angular-notifier.d.ts",
3838
"scripts": {
3939
"codecov": "codecov",
4040
"gulp": "gulp",
4141
"webpack-dev-server": "webpack-dev-server",
42-
"start": "webpack --config ./tools/webpack/webpack.dll.config.js --hide-modules && webpack-dev-server --config ./tools/webpack/webpack.dev.config.js",
43-
"test": "jest --config jest.config.json",
42+
"start": "webpack --config tools/webpack/webpack.dll.config.js --hide-modules && webpack-dev-server --config tools/webpack/webpack.dev.config.js",
43+
"test": "jest --config tools/jest/jest.config.json",
4444
"lint": "gulp lint",
4545
"build": "gulp run",
4646
"ci:automatic-release": "automatic-release",
4747
"ci:post-automatic-release": "gulp env:release",
48-
"ci:coverage": "codecov -f ./coverage/coverage-final.json",
49-
"ci:test": "jest --config jest.config.json --runInBand --no-cache"
48+
"ci:coverage": "codecov -f coverage/coverage-final.json",
49+
"ci:test": "jest --config tools/jest/jest.config.json --runInBand --no-cache"
5050
},
5151
"peerDependencies": {
5252
"@angular/common": ">= 4.0.0 < 5.0.0",

jest.config.json renamed to tools/jest/jest.config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"moduleNameMapper": {
2121
"(.*)": "<rootDir>/src/$1"
2222
},
23+
"rootDir": "../../",
2324
"transformIgnorePatterns": [
2425
"node_modules/(?!@ngrx)"
2526
],

0 commit comments

Comments
 (0)