Skip to content

Commit

Permalink
build: reuse test commands on test
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver committed Jun 14, 2018
1 parent 91597cb commit b260887
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion jest.app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const baseConfig = require('./jest.base.config');
module.exports = {
...baseConfig,
roots: ['<rootDir>/src'],
modulePathIgnorePatterns: ['<rootDir>/projects'],
moduleNameMapper: {
'ngx-testing-library': '<rootDir>/dist/ngx-testing-library',
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "ng build --prod ngx-testing-library",
"postbuild": "cp ./README.md ./dist/ngx-testing-library",
"pretest": "npm run build",
"test": "jest --config ./jest.lib.config.js && npm run build && jest --config ./jest.app.config.js",
"test": "npm run test:lib && npm run build && npm run test:app",
"test:lib": "jest --config ./jest.lib.config.js",
"test:app": "jest --config ./jest.app.config.js",
"precommit": "lint-staged",
Expand Down

0 comments on commit b260887

Please sign in to comment.