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 |
|
dave caruso
|
3908ac073b
|
fix(transpiler): mark non-ascii TS enum keys as UTF-16 (#11994)
Co-authored-by: paperdave <paperdave@users.noreply.github.com>
|
2024-06-20 16:14:03 -07:00 |
|
Dylan Conway
|
5934b17f00
|
fix(windows): fix a few more tests (#8644)
* fix regression tests
* fix fs.test.ts bigintstats
* enable transpiler cache lol
* remove failing
* fix filesystem router
* update
* fix run-unicode test
* update comment
* add updated snapshot
* fix remaining node-module-module tests
* fixup
* [autofix.ci] apply automated fixes
* fix tty tests
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
|
2024-02-02 18:58:16 -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
|
98d19fa624
|
fix(runtime): make some things more stable (partial jsc debug build) (#5881)
* make our debug assertions work
* install bun-webkit-debug
* more progress
* ok
* progress...
* more debug build stuff
* ok
* a
* asdfghjkl
* fix(runtime): fix bad assertion failure in JSBufferList
* ok
* stuff
* upgrade webkit
* Update src/bun.js/bindings/JSDOMWrapperCache.h
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
* fix message for colin's changes
* okay
* fix cjs prototype
* implement mainModule
* i think this fixes it all
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
|
2023-10-16 21:22:43 -07:00 |
|