robobun
|
5617b92a5a
|
test: refactor spawnSync to spawn with describe.concurrent (#25849)
## Summary
- Refactor 16 test files to use async `Bun.spawn` instead of
`Bun.spawnSync`
- Wrap tests in `describe.concurrent` blocks for parallel execution
- Use `await using` for automatic resource cleanup
## Performance Improvement
| Test File | Before | After | Improvement |
|-----------|--------|-------|-------------|
| `node-module-module.test.js` (28 tests) | ~325ms | ~185ms | **43%
faster** |
| `non-english-import.test.js` (3 tests) | ~238ms | ~157ms | **34%
faster** |
## Files Changed
- `test/cli/run/commonjs-invalid.test.ts`
- `test/cli/run/commonjs-no-export.test.ts`
- `test/cli/run/empty-file.test.ts`
- `test/cli/run/jsx-symbol-collision.test.ts`
- `test/cli/run/run-cjs.test.ts`
- `test/cli/run/run-extensionless.test.ts`
- `test/cli/run/run-shell.test.ts`
- `test/cli/run/run-unicode.test.ts`
- `test/js/bun/resolve/non-english-import.test.js`
- `test/js/node/module/node-module-module.test.js`
- `test/regression/issue/00631.test.ts`
- `test/regression/issue/03216.test.ts`
- `test/regression/issue/03830.test.ts`
- `test/regression/issue/04011.test.ts`
- `test/regression/issue/04893.test.ts`
- `test/regression/issue/hashbang-still-works.test.ts`
## Test plan
- [x] All refactored tests pass with `USE_SYSTEM_BUN=1 bun test <file>`
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Bot <claude-bot@bun.sh>
Co-authored-by: Claude <noreply@anthropic.com>
|
2026-01-06 15:37:56 +00:00 |
|
Jarred Sumner
|
cd6785771e
|
run prettier and add back format action (#13722)
|
2024-09-03 21:32:52 -07:00 |
|
Meghan Denny
|
4efe026b5f
|
test: unify how all files create a temp directory (#11057)
Co-authored-by: nektro <nektro@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
|
2024-05-14 20:19:35 -07:00 |
|
Ashcon Partovi
|
264142e756
|
Add isWindows and related helpers to test harness
|
2024-02-05 12:47:52 -08:00 |
|
Meghan Denny
|
3a7df3f6c7
|
windows: add more passing test (#8615)
|
2024-02-01 13:45:47 -08:00 |
|
Dylan Conway
|
5a0ae3c256
|
not on windows
|
2024-01-27 07:32:06 -08:00 |
|
dave caruso
|
072f2f15ea
|
ci: run windows tests and also run them concurrently (#7758)
|
2024-01-12 17:02:20 -08:00 |
|
dave caruso
|
b7951511a3
|
fix(run): interpret extensionless files as typescript (#5711)
* test
* gadsgsagdsa
* add better err msg
* r
* oops
* ok
|
2023-09-20 19:48:46 -07:00 |
|