Skip to content

Commit f71b39d

Browse files
committed
fix: unit tests failure
1 parent 76e7a97 commit f71b39d

40 files changed

+67
-1798
lines changed

infrastructure/evault-core/vitest.config.e2e.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ export default defineConfig({
88
setupFiles: ['./src/test-utils/test-setup.ts'],
99
testTimeout: 120000, // 120 seconds for testcontainers
1010
hookTimeout: 120000, // 120 seconds for hooks (beforeAll, afterAll)
11+
// Run E2E tests sequentially to avoid resource conflicts and native module crashes
12+
pool: 'forks',
13+
poolOptions: {
14+
forks: {
15+
singleFork: true, // Run all E2E tests in a single fork to avoid native module loading conflicts
16+
},
17+
},
18+
// Reduce log verbosity
19+
logHeapUsage: false,
20+
silent: false,
1121
coverage: {
1222
provider: 'v8',
1323
reporter: ['text', 'json', 'html'],

infrastructure/evault-core/vitest.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ export default defineConfig({
88
setupFiles: ['./src/test-utils/test-setup.ts'],
99
testTimeout: 120000, // 120 seconds for testcontainers
1010
hookTimeout: 120000, // 120 seconds for hooks (beforeAll, afterAll)
11+
// Run tests sequentially to avoid testcontainer conflicts and native module crashes
12+
pool: 'forks', // Use forks instead of threads to avoid native module conflicts
13+
poolOptions: {
14+
forks: {
15+
singleFork: true, // Run all tests in a single fork to avoid native module loading conflicts
16+
},
17+
},
18+
// Reduce log verbosity
19+
logHeapUsage: false,
20+
silent: false,
1121
coverage: {
1222
provider: 'v8',
1323
reporter: ['text', 'json', 'html'],
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Dependencies
2+
node_modules/
3+
4+
# Build outputs
5+
dist/
6+
7+
# TypeScript build artifacts in src (should only have .ts files)
8+
src/**/*.js
9+
src/**/*.d.ts
10+
src/**/*.js.map
11+
src/**/*.d.ts.map
12+
13+
# IDE
14+
.vscode/
15+
.idea/
16+
*.swp
17+
*.swo
18+
*~
19+
20+
# OS
21+
.DS_Store
22+
Thumbs.db
23+
24+
# Logs
25+
*.log
26+
npm-debug.log*
27+
yarn-debug.log*
28+
yarn-error.log*
29+
30+
# Test coverage
31+
coverage/
32+
.nyc_output/
33+
34+
# Environment
35+
.env
36+
.env.local
37+
.env.*.local
38+

infrastructure/web3-adapter/src/db/index.d.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

infrastructure/web3-adapter/src/db/index.d.ts.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

infrastructure/web3-adapter/src/db/index.js

Lines changed: 0 additions & 36 deletions
This file was deleted.

infrastructure/web3-adapter/src/db/index.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

infrastructure/web3-adapter/src/db/mapping.db.d.ts

Lines changed: 0 additions & 41 deletions
This file was deleted.

infrastructure/web3-adapter/src/db/mapping.db.d.ts.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

infrastructure/web3-adapter/src/db/mapping.db.js

Lines changed: 0 additions & 141 deletions
This file was deleted.

0 commit comments

Comments
 (0)