Skip to content

Commit 4cc3dde

Browse files
committed
Add connection tests
1 parent 93c88ca commit 4cc3dde

File tree

8 files changed

+1608
-8
lines changed

8 files changed

+1608
-8
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 205 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/client-resources/jest.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ module.exports = {
33
testEnvironment: 'node',
44
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
55
roots: ['./src'],
6-
coverageReporters: ['text-summary', 'html', 'lcov']
6+
coverageReporters: ['text-summary', 'html', 'lcov'],
7+
testTimeout: 10000, // 10 seconds timeout for all tests
8+
forceExit: true // Force exit after tests complete to handle lingering timers
79
}

packages/client-resources/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@
3737
"jest": "^29.7.0",
3838
"ts-jest": "^29.1.1",
3939
"@types/jest": "^29.5.5",
40-
"@types/snappyjs": "^0.7.1"
40+
"@types/snappyjs": "^0.7.1",
41+
"@types/node": "^20.0.0",
42+
"ws": "^8.18.0",
43+
"@types/ws": "^8.5.12"
4144
},
4245
"dependencies": {
4346
"@hcengineering/analytics": "workspace:^0.7.3",

0 commit comments

Comments
 (0)