Commit d6a4fc6
committed
fix(bb-ts): clean_shutdown test resolves harness off cwd, not import.meta.url
`run_test.sh` runs jest with `--rootDir ./dest/node` from `barretenberg/ts/`,
so the test file at runtime lives at `dest/node/barretenberg/clean_shutdown.test.js`
and `path.resolve(import.meta.url, '..', '..')` lands in `dest/`, where the
harness source does not exist (it stays in `src/`). The test would silently
time out at 30s. Use `process.cwd()` (set by run_test.sh to the package
root) and join from there.1 parent 80e1fa6 commit d6a4fc6
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | | - | |
21 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
0 commit comments