Commit 30b7aee
committed
ci(sea): run SEA e2e under nyc so ts-node/register loads .ts (fix ESM-loader race)
Bare `mocha` has no ts-node registration, so it loaded the .ts specs via the ESM
dynamic-import path and crashed with ERR_INTERNAL_ASSERTION (... not yet fully
loaded ... Promise.all) before any test ran. main.yml's e2e job avoids this by
running `nyc mocha` — nyc.config.js's `require: ['ts-node/register']` installs the
CommonJS ts-node hook, loading specs synchronously. Mirror that: invoke
`nyc ... mocha --config tests/e2e/.mocharc.js <glob>`, keeping the glob at argv
index 4 (the mocharc derives spec from process.argv.slice(4)).
Everything else in the pipeline is now confirmed green: App-token + private-kernel
checkout, ~/.npm cache, npm ci, build:native, the KERNEL_REV contract-drift assert,
and the binding smoke-check. This was the last failing step.
Co-authored-by: Isaac
Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>1 parent 45b79c1 commit 30b7aee
1 file changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
337 | 344 | | |
338 | 345 | | |
339 | 346 | | |
| |||
0 commit comments