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
..
2025-05-08 23:22:16 -07:00
2025-09-24 00:47:52 -07:00
2025-07-25 16:22:04 -07:00
2024-12-05 15:16:37 -07:00
2024-09-03 21:32:52 -07:00
2025-10-03 15:55:57 -07:00
2025-05-08 23:22:16 -07:00
2024-10-01 21:55:05 -07:00
2025-04-25 23:34:13 -07:00
2025-02-20 12:09:27 -08:00
2025-10-04 04:57:29 -07:00
2025-11-07 05:28:33 -08:00
2025-08-27 06:39:11 -07:00
2024-09-03 21:32:52 -07:00
2026-01-06 15:37:56 +00:00
2025-09-27 00:27:23 -07:00
2025-07-14 02:48:20 -07:00
2025-05-30 00:15:26 -07:00
2025-11-07 14:33:26 -08:00
2025-09-06 00:31:32 -07:00
2025-12-15 18:35:26 -08:00
2025-06-13 19:05:05 -07:00
2025-10-09 19:04:41 -07:00
2025-07-14 00:47:53 -07:00
2024-12-12 01:35:08 -08:00
2025-12-23 22:24:18 -08:00
2025-09-20 00:35:42 -07:00
2025-07-14 00:47:53 -07:00
2025-05-30 22:10:29 -07:00
2025-10-20 18:01:25 -07:00
2025-05-08 23:22:16 -07:00
2025-11-27 12:26:50 -08:00
2025-09-11 17:53:06 -07:00
2025-12-07 13:29:32 -08:00
2025-06-22 18:22:41 -07:00
2025-08-22 19:59:15 -07:00
2025-07-02 21:48:24 -07:00
2025-09-02 18:49:04 -07:00
2025-10-18 16:54:09 -07:00
2024-09-03 21:32:52 -07:00
2025-08-28 17:28:38 -07:00
2025-12-23 22:24:18 -08:00
2025-01-10 00:45:43 +00:00
2025-08-20 00:25:00 -07:00
2023-03-07 12:22:34 -08:00
2025-05-07 16:21:08 -07:00
2024-09-03 21:32:52 -07:00
2023-03-07 12:22:34 -08:00
2025-10-09 19:11:08 -07:00
2025-05-08 23:22:16 -07:00
2025-05-09 21:25:40 -07:00
2024-09-03 21:32:52 -07:00
2025-01-14 20:53:02 -08:00
2024-11-06 15:00:24 -08:00
2024-06-25 00:17:51 -07:00
2024-09-03 21:32:52 -07:00