Commit b081915
fix: resolve worker thread OOM by switching to vmThreads pool
Switched from 'threads' to 'vmThreads' pool in vitest.config.js.
This resolves the persistent "Worker terminated due to reaching memory limit" error.
vmThreads pool provides better memory management for test execution,
allowing all 331 tests to pass without hitting memory limits.
Also updated package.json test script to use NODE_OPTIONS for main process
(though vmThreads was the actual fix).
Result: All tests now pass with exit code 0, no OOM errors.
Related to 12 previous sessions of OOM debugging which eliminated:
- 19 fake test files testing non-existent scripts
- Slow async tests with real delays
- Various cleanup issues
This final change to vmThreads completes the fix.
Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>1 parent de1b5da commit b081915
2 files changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
| |||
0 commit comments