Repository navigation
Commit bcccf92
committed
Document the node --test IPC flake and add a workaround script
npm test intermittently fails on Node 22.x with ERR_TEST_FAILURE /
"Unable to deserialize cloned data" — an upstream Node.js test-runner bug
(nodejs/node#64061, fixed on main/v24.x/v26.x, backport to v22.x still open
as nodejs/node#65934). A non-ASCII byte in a test file's stdout (this repo
logs with unicode symbols throughout lib/*.js) desyncs the per-file worker
IPC framing. Confirmed reproducible with only the pre-existing test files,
unrelated to any application logic.
Add npm run test:stable (--experimental-test-isolation=none, single
process, no IPC) as an opt-in workaround, and document the root cause in
docs/ARCHITECTURE.md so it isn't mistaken for a real test failure.1 parent 7daa2dd commit bcccf92
2 files changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
226 | 239 | | |
227 | 240 | | |
228 | 241 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
0 commit comments