Skip to content

Commit

Permalink
Properly configure unit test script to improve local dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mkreiser committed Oct 21, 2023
1 parent 43511bd commit 2d55eb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
coverageDirectory: 'coverage',
restoreMocks: true,
testEnvironment: 'node',
testMatch: ['**/src/**/?(*.)+(spec|test).[jt]s?(x)'],
transform: {
'^.+\\.js$': 'babel-jest'
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"lint": "eslint integration-tests/**/*.js src/**/*.js",
"prepublishOnly": "npm run build",
"serve:docs": "npm run build:docs && http-server ./docs -c-1",
"test": "jest src --maxWorkers=2",
"test": "jest --maxWorkers=2",
"test:integration": "jest integration-tests --maxWorkers=2 --coverage=false"
},
"repository": {
Expand Down

0 comments on commit 2d55eb8

Please sign in to comment.