Skip to content

Commit b260887

Browse files
committed
build: reuse test commands on test
1 parent 91597cb commit b260887

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

jest.app.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const baseConfig = require('./jest.base.config');
33
module.exports = {
44
...baseConfig,
55
roots: ['<rootDir>/src'],
6-
modulePathIgnorePatterns: ['<rootDir>/projects'],
76
moduleNameMapper: {
87
'ngx-testing-library': '<rootDir>/dist/ngx-testing-library',
98
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"build": "ng build --prod ngx-testing-library",
88
"postbuild": "cp ./README.md ./dist/ngx-testing-library",
99
"pretest": "npm run build",
10-
"test": "jest --config ./jest.lib.config.js && npm run build && jest --config ./jest.app.config.js",
10+
"test": "npm run test:lib && npm run build && npm run test:app",
1111
"test:lib": "jest --config ./jest.lib.config.js",
1212
"test:app": "jest --config ./jest.app.config.js",
1313
"precommit": "lint-staged",

0 commit comments

Comments
 (0)