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
pfg
95fcee8b76
Fix expect toMatchSnapshot not working for some strings ( #15183 )
2024-11-21 17:46:45 -08:00
Jarred Sumner
cd6785771e
run prettier and add back format action ( #13722 )
2024-09-03 21:32:52 -07:00
Jarred Sumner
59c5c0fe48
Fix memory leak when requiring or importing modules that get GC'd later ( #12997 )
2024-08-01 12:05:37 -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
Meghan Denny
d0d4d8bf85
windows: enable more passing tests ( #8711 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-02-06 16:08:49 -08:00
dave caruso
072f2f15ea
ci: run windows tests and also run them concurrently ( #7758 )
2024-01-12 17:02:20 -08:00
Jarred Sumner
bf32d36e4c
Cleanup how build errors are displayed slightly ( #7223 )
...
* Cleanup error formatting a little
* Add error for using import statement with CommonJS-only features
* Update js_ast.zig
* Further tweaks to formatting, also print error.cause
* Add some snapshot tests for errors
* Make these snapshot tests
* Ignore mimalloc warnings
* Update error message parsing in bundling tests
* Increase timeout on the test
* Update expectBundled.ts
* Update test
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-20 15:07:13 -08:00
Jarred Sumner
98f20170a3
Add more tests for Bun.spawn lifecycle and address edgecase ( #6904 )
...
* FIxup spawn ref / unref
* Fix test failures
* Add test for #3480
* windows
* 🪟
* Skip on linux
* Fix test
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-05 00:00:19 -07:00
Dylan Conway
7e09c7ca1e
format
2023-10-30 16:09:34 -07:00
IAS
cbc5ca770b
fix: Macro segmentation faults ( #6756 )
...
* Fix for seg faults when using macros
* Update src/js_ast.zig to reflect review suggestions
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* add test for checking non-zero exitcodes under macros. regression, issue 3830
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-10-30 12:36:38 -07:00