Skip to content

Commit

Permalink
chore(jest): Fix jest config path (#34)
Browse files Browse the repository at this point in the history
- Revert jest config path (by defining the rootDir property, see thymikee/jest-preset-angular#59)
  • Loading branch information
dominique-mueller authored Jul 25, 2017
1 parent 7b82d35 commit 1b8019f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions jest.config.json → tools/jest/jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"moduleNameMapper": {
"(.*)": "<rootDir>/src/$1"
},
"rootDir": "../../",
"transformIgnorePatterns": [
"node_modules/(?!@ngrx)"
],
Expand Down

0 comments on commit 1b8019f

Please sign in to comment.