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
..
2024-02-14 08:23:45 -08:00
2025-03-26 16:19:45 -07:00
2024-01-23 20:03:56 -08:00
2025-06-09 18:52:30 -07:00
2023-12-08 16:32:35 -08:00
2023-06-26 12:49:20 -07:00
2023-06-26 12:49:20 -07:00
2025-08-23 06:55:30 -07:00
2024-03-21 00:06:24 -07:00
2023-03-07 12:22:34 -08:00
2024-04-04 07:26:53 -07:00
2025-01-12 20:08:56 -08:00
2023-11-22 14:11:35 -08:00
2023-11-22 14:11:35 -08:00
2025-04-25 23:42:41 -07:00
2024-10-20 22:02:44 +00:00
2025-05-08 23:22:16 -07:00
2023-03-07 12:22:34 -08:00
2023-03-07 12:22:34 -08:00
2024-10-02 02:24:37 -07:00
2025-08-23 06:55:30 -07:00
2025-07-19 01:59:52 -07:00
2025-05-08 23:22:16 -07:00
2025-01-16 23:16:11 -08:00
2025-05-08 23:22:16 -07:00
2024-09-03 21:32:52 -07:00
2023-03-07 12:22:34 -08:00
2024-09-03 21:32:52 -07:00
2024-09-03 21:32:52 -07:00
2025-01-12 20:08:56 -08:00
2024-09-03 21:32:52 -07:00
2024-03-21 00:06:24 -07:00
2024-03-21 00:06:24 -07:00
2025-12-25 17:43:43 -08:00
2023-04-04 16:49:33 -07:00
2023-04-04 16:49:33 -07:00
2026-01-06 15:37:56 +00:00
2024-03-15 22:44:23 -07:00
2024-03-15 22:44:23 -07:00
2023-12-07 01:51:21 -08:00
2023-03-07 12:22:34 -08:00
2023-03-07 12:22:34 -08:00
2023-03-07 12:22:34 -08:00
2023-03-07 12:22:34 -08:00
2023-03-07 12:22:34 -08:00
2025-05-08 23:22:16 -07:00
2025-03-20 00:53:46 -07:00
2025-07-30 23:33:09 -07:00
2025-07-25 12:46:33 -07:00
2024-09-03 21:32:52 -07:00
2023-03-07 12:22:34 -08:00
2025-07-25 12:46:33 -07:00
2024-09-03 21:32:52 -07:00
2024-09-03 21:32:52 -07:00
2023-03-07 12:22:34 -08:00
2023-03-07 12:22:34 -08:00