Skip to content

Commit 96bf1d7

Browse files
committed
update test commands
1 parent ecb4996 commit 96bf1d7

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

jest.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
// https://jestjs.io/docs/configuration#options
12
module.exports = {
2-
verbose: false,
33
setupFilesAfterEnv: ['./test/setupTests.ts'],
4-
testEnvironment: './test/custom-jest-environment.js'
4+
testEnvironment: './test/custom-jest-environment.js',
5+
forceExit: true // jest hangs if we don't have this
56
};

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
"start": "tsdx watch",
1515
"build": "tsdx build",
1616
"test:tsdx": "tsdx test",
17-
"test": "firebase emulators:exec --only firestore,database,auth --project rxfire-525a3 \"tsdx test --detectOpenHandles --forceExit\"",
17+
"test": "firebase emulators:exec --only firestore,database,auth --project rxfire-525a3 \"tsdx test\"",
18+
"test:firestore": "firebase emulators:exec --only firestore --project rxfire-525a3 \"tsdx test firestore --verbose\"",
19+
"test:database": "firebase emulators:exec --only database --project rxfire-525a3 \"tsdx test database --verbose\"",
20+
"test:auth": "firebase emulators:exec --only auth --project rxfire-525a3 \"tsdx test auth --verbose\"",
1821
"lint": "tsdx lint src test",
1922
"size": "size-limit",
2023
"analyze": "size-limit --why",

0 commit comments

Comments
 (0)