Jarred Sumner
b3d5f37598
Implement require.cache ( #3045 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-05-24 12:01:59 -07:00
Alex Lam S.L
31c967206a
extend test time-outs ( #3048 )
...
- avoid intermittent failures due to network latencies
2023-05-24 08:33:18 -07:00
Ashcon Partovi
c3d402ce47
Implement bun test --timeout ( #3040 )
...
You can change the default per-test timeout in `bun test`:
> bun test --timeout 10
The default timeout is 5000.
2023-05-23 22:33:32 -07:00
Jarred Sumner
65237b3054
Update run-cjs.test.ts
2023-05-16 08:52:14 -07:00
dave caruso
c842f5bfe3
Fix running commonjs modules as entry point ( #2885 )
...
* fix cjs run issue
* use a primordial
* fix behavior
* fix it again
* fix tste
2023-05-16 08:49:35 -07:00
Alex Lam S.L
5fd838b9e4
bun add from root folder when call within workspaces (#2841 )
...
- ignore invalid `package.json` from parent directories
- `echo` new lines from `make` targets correctly
2023-05-10 17:22:01 +03:00
Alex Lam S.L
4ccca13001
[install] operator on root package of workspaces ( #2834 )
...
- parse `bunfig.toml` from same directory as `package.json`
- handle `--cwd` correctly
fixes #2592
2023-05-10 08:26:29 +03:00
Alex Lam S.L
c05a6744bb
[install] handle devDependencies of local folders ( #2781 )
...
fixes #2653
2023-05-01 06:41:33 +03:00
Alex Lam S.L
dd03a4f95d
[install] handle repeated install of GitHub dependency correctly ( #2780 )
...
fixes #2602
2023-04-30 09:45:08 -07:00
Alex Lam S.L
6e16bb67eb
[install] fix bun add on non-aliased dependency ( #2728 )
2023-04-24 17:56:43 -07:00
dave caruso
f788519263
bun-types: infer strict Subprocess from Bun.spawn() options, part 2 ( #2573 )
2023-04-06 13:59:06 -07:00
Jarred Sumner
f3ab445c3f
Use absolute paths more
2023-04-03 18:12:51 -07:00
Jarred Sumner
ae849528b8
Fix test failure
2023-04-03 18:11:14 -07:00
Alex Lam S.L
74cacffb0c
[install] fix stale pointer with tarball URLs ( #2520 )
...
* [install] fix stale pointer with tarball URLs
fixes #2512
* `alloc()` & `free()` instead of fixed-size buffer
2023-03-30 21:54:56 -07:00
Alex Lam S.L
977446ef3c
[install] fix re-install of git dependency ( #2519 )
...
- add tests for re-install of npm alias & GitHub URL
2023-03-30 19:50:23 -07:00
Alex Lam S.L
758daa7367
[install] fix re-run of tarball URL from lockfile ( #2507 )
2023-03-29 20:38:19 -07:00
Alex Lam S.L
0a91490226
[install] support tarball URLs ( #2497 )
...
closes #2448
2023-03-28 13:45:00 -07:00
Alex Lam S.L
319efe9c7b
[install] fix tests ( #2488 )
...
- avoid creating spurious directories next to test scripts
2023-03-25 21:51:03 -07:00
Jarred Sumner
52d27659a2
Fixes #2462 ( #2463 )
2023-03-23 15:49:42 +02:00
Colin McDonnell
a5f92224b5
Fix types ( #2453 )
...
* WIP
* WIP
* WIP
* WIP
* Improve typechecking in type files
* Fix typechecking
* Update
* Update submodule
* CI for typechecking
* Add ci
* Update commands
* Format after build
* Dont use bunx
* Rename job
* Use nodemodules prettier
* Update workflow
* Use symlink
* Debug
* Debug
* Clean up and rename jobs
2023-03-22 15:01:01 -07:00
Jarred Sumner
1a25af5e3d
Implement simple workspaces glob support in bun install ( #2435 )
...
* [bun install] Implement `packages/*`-style globs
* Fix incorrect assertion
* 💅
* remove extraneous console.log
* Fix pointer to stack memory
* Add a test with a scoped package name from a glob workspace
* Fixup
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-03-20 05:57:23 -07:00
Jarred Sumner
5a23d17620
Several bug fixes ( #2427 )
...
* Fix test
* Fix segfault when unexpected type is passed in `expect().toThrow`
* Fix issues with request constructor
* Don't bother cloning headers when its empty
* woops
* more tests
* fix incorrect test
* Make the fetch error messages better
* Update response.zig
* Fix test that failed on macOS
* Fix test
* Remove extra hash table lookups
* Support running dummy registry directly
cc @alexlamsl
* Update test
* Update test
* fixup
* Workaround crash in test runner
* Fixup test
* Fixup test
* Update os.test.js
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-03-19 14:08:20 -07:00
Alex Lam S.L
acd361855a
[install] sanitise against malformed bun.lockb ( #2397 )
...
* [install] sanitise against malformed `bun.lockb`
fixes #2392
* fix `prettier` checks in unrelated files
2023-03-15 08:49:52 -07:00
Ashcon Partovi
f7e4eb8369
Reorganize tests ( #2332 )
2023-03-07 12:22:34 -08:00