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