Skip to content

Commit d884579

Browse files
Refactored test:unit run script to not overwrite testPathIgnorePatterns
1 parent 5d39b6d commit d884579

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

services/gp2gp-messenger/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"lint:fix": "npm run lint -- --fix",
1111
"test": "npm run lint:fix && npm run test:unit && npm run test:integration",
1212
"test:coverage-unit-test-only": "jest src/ --testPathIgnorePatterns=\"**/*integration.test.js\" --maxWorkers=1 --coverage --detectOpenHandles --forceExit --setupFiles dotenv/config",
13-
"test:unit": "NODE_OPTIONS=--experimental-vm-modules jest src/ --setupFiles dotenv/config --detectOpenHandles",
13+
"test:unit": "NODE_OPTIONS=--experimental-vm-modules jest \"src/(?!(.*\\integration.test\\.js))\" --setupFiles dotenv/config --detectOpenHandles",
1414
"test:integration": "NODE_OPTIONS=--experimental-vm-modules jest src/ --testMatch=\"**/*integration.test.js\" --detectOpenHandles --forceExit --setupFiles dotenv/config",
1515
"test:functional": "jest test/functional/*",
1616
"test:functional:opentest": "jest \"test/functional/\" --testPathIgnorePatterns=\"test/functional/health-record-requests.test.js\"",
@@ -71,8 +71,7 @@
7171
".*/__tests__/data/.*",
7272
".*/test-utils.js",
7373
".*/test/e2e/.*",
74-
".*/test/functional/.*",
75-
"integration\\.test\\.js$"
74+
".*/test/functional/.*"
7675
],
7776
"resetModules": true,
7877
"clearMocks": true,

0 commit comments

Comments
 (0)