Scope
Port the byte-identical Bun corpus slice under js/bun/test/mock/6879:
- 6879.test.ts
- first.ts
- second.ts
- third.ts
This extends #122 from resolved/cached sibling modules to the ESM semantic requirement that existing imported bindings remain live when mock.module replaces a dependency.
Baseline
The exact file is currently converted into one native todo:
- 0 pass
- 0 fail
- 0 unsupported
- 1 todo
Acceptance
- Preserve byte identity with the upstream Bun files.
- Run both original tests as real tests with no native todo.
- Model live named imports/re-exports rather than snapshotting destructured values.
- Add a permanent shared-runtime regression.
- Pass the exact file and the full home_test gate.
- Commit and push as Chris Breuer with no coauthors.
- Link the completed work back to #66.