Jarred Sumner
d2968eeb80
Parallelize this test
2024-03-07 02:28:06 -08:00
Jarred Sumner
5027877714
Make this test better
2024-03-07 00:58:58 -08:00
Jarred Sumner
b2cc1a9039
Fix this test
2024-03-06 21:01:21 -08:00
Jarred Sumner
12ed874f8c
Make this test not hang in development
2024-03-06 21:00:42 -08:00
Jarred Sumner
3e5f6b1a8b
Move this to the harness
2024-03-06 21:00:06 -08:00
Jarred Sumner
7cd350718e
Update serve.test.ts
2024-03-06 19:49:36 -08:00
Jarred Sumner
e067d99d02
Won't really fix it but slightly cleaner
2024-03-06 19:45:01 -08:00
Jarred Sumner
2236f15890
Make these comparisons easier
2024-03-06 19:45:01 -08:00
Jarred Sumner
2f766197da
Deflake this test
2024-03-06 19:45:01 -08:00
Jarred Sumner
20bb1c2bca
Fix a test
2024-03-06 19:45:01 -08:00
dave caruso
0584306589
fix reading special files
2024-03-06 18:22:24 -08:00
Jarred Sumner
f601c39020
Update child_process.test.ts
2024-03-06 17:42:58 -08:00
Jarred Sumner
2c0e8c99a9
Merge branch 'main' into jarred/process-change
2024-03-06 17:39:48 -08:00
cirospaciari
0f223cb72c
always run expect
2024-03-06 21:42:43 -03:00
Jarred Sumner
f6d5325daa
Support socketPath in node:http request ( #9284 )
...
* Support `socketPath` in node:http request
* fix dashes
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: dave caruso <me@paperdave.net >
2024-03-06 15:28:35 -08:00
cirospaciari
ce82aeccc6
oops
2024-03-06 19:43:02 -03:00
cirospaciari
dd50fe5347
cleanup
2024-03-06 19:37:43 -03:00
cirospaciari
b113490a7d
some fixes
2024-03-06 19:36:03 -03:00
Jarred Sumner
a66926243d
Support unix domain sockets in fetch() ( #9097 )
...
* Support unix domain sockets in fetch()
* rename to 'socket' to 'unix', add test
* enable keepalive on unix socket fetch
* make ownership of unix_socket_path clear, refactor http.zig a bit
* [autofix.ci] apply automated fixes
* add fetch unix redirect test, fix crash
* [autofix.ci] apply automated fixes
* fix fetch redirect from unix to non-unix
* disable keepalive for unix sockets (for now) so we don't leak them
* Update test/js/web/fetch/fetch.unix.test.ts
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Georgijs Vilums <georgijs@bun.sh >
Co-authored-by: Georgijs <48869301+gvilums@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
2024-03-06 14:12:03 -08:00
Zack Radisic
335c957a4f
initialize env map with capacity
2024-03-06 12:39:03 -06:00
Meghan Denny
8fc08752e5
node:http: emit 'socket' event after calling http.request() ( #9270 )
...
* node:http: emit 'socket' event after calling http.request()
* add reference links for why this is how it is
* add guards to not waste time
* add a regression test
* use test harness port number
2024-03-05 23:01:32 -08:00
Jarred Sumner
09e7aaa17d
Fixups
2024-03-05 22:47:13 -08:00
Jarred Sumner
b9ceca7e30
fixups
2024-03-05 22:47:13 -08:00
Jarred Sumner
b8a2ef88f1
Merge branch 'main' into jarred/process-change
2024-03-05 20:17:53 -08:00
Meghan Denny
bb3295ba84
node:url implement domainToASCII and domainToUnicode ( #9257 )
...
* node:url implement domainToASCII and domainToUnicode
* fix arg checks
* remove unneeded use of WTF::Vector
* tidy
* throw a js error if icu fails
* add a ton more tests, fix ascii guard, upconvert latin1
* even more tests
* add a comment for this guard
* use ASSERT_NOT_REACHED() instead of raise(SIGABRT)
2024-03-05 19:46:38 -08:00
Jarred Sumner
76ed3256cf
Make this test less flaky on windows
2024-03-05 19:24:21 -08:00
Jarred Sumner
4ce5506463
Make this test less flaky on windows
2024-03-05 19:23:47 -08:00
Ashcon Partovi
c837903e4e
Fix new Request("/") not working with node-fetch ( #9246 )
...
* Fix `new Request("/")` not working with `node-fetch`
* Address review
* Address review 2
* Fix bad test
2024-03-05 16:51:52 -08:00
Jarred Sumner
edeeffc74c
Fixes #9263 ( #9266 )
...
* Fixes #9283
* Update URLSearchParams.test.ts
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-05 16:27:33 -08:00
Jarred Sumner
c5f6f26e5b
Don't commit
2024-03-05 15:34:01 -08:00
Jarred Sumner
a9345921df
Make it pass on windows
2024-03-05 15:32:41 -08:00
Jarred Sumner
1c9d2bec1c
Merge branch 'main' into jarred/process-change
2024-03-05 13:54:25 -08:00
Jarred Sumner
a96a744629
Make this test less flaky on Windows
2024-03-05 13:45:28 -08:00
Jarred Sumner
ef9c800e77
Fix some tests
2024-03-04 23:10:57 -08:00
Yash Singh
bd2176ffb0
fix: format specifier without characters in between ( #9209 )
...
* fix: format specifier without spaces in between, resolves #9208
* chore: test in console-log.test.ts
2024-03-04 17:46:19 -08:00
Jarred Sumner
3234d522bb
Merge branch 'main' into jarred/process-change
2024-03-04 16:49:58 -08:00
ErikOnBike
4f0a497660
Fix lost constructors in Node.js module classes ( #9245 )
2024-03-04 16:12:22 -08:00
Brook Jeynes [SSW]
fa08ac34c9
Fixes #7767 : Updated bun upgrade to return error when used with cmd arguments ( #7784 )
...
* Updated `upgrade` to return error when used with cmd arguments
- Updated `upgrade` command to check for command-line arguments and return an error if so providing a suggested `update` command.
* added test
* updated condition to allow
* Upgrade argument check now only checks if all arguments contain `--`
- Added more tests
* Using `cpSync` in the following context results in an "Is a directory" error
* Update message displayed back to user
Co-authored-by: dave caruso <me@paperdave.net >
* moved args check to upgrade_command.zig
* fixed broken tests
* changing string interpolation to join() for paths
* [autofix.ci] apply automated fixes
* Fixed build errors
- Removed call to `std.mem.span`
- Added conditional to only run if there's more than 2 arguments (ignores the exec and `upgrade`)
- Added new test to ensure `upgrade` runs with 0 arguments passed
---------
Co-authored-by: dave caruso <me@paperdave.net >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-03-04 15:30:20 -08:00
cirospaciari
d6ad653aeb
fix dns tests to match behavior on windows (same as nodejs)
2024-03-04 11:13:04 -03:00
Jarred Sumner
24c44c6309
Merge branch 'main' into jarred/process-change
2024-03-04 00:27:27 -08:00
Jarred Sumner
1424a196ff
Support "conditions" in Bun.build ( #9234 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-03 23:52:24 -08:00
Zack Radisic
05a7779880
shell: Improve ShellError stacktrace ( #9233 )
...
* Improve stacktrace
* woops
2024-03-03 21:46:42 -08:00
Jarred Sumner
6d52b3b62b
Fixes #8794 ( #9231 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-03 20:13:22 -08:00
Jarred Sumner
30fdfdb295
Fixes #9222 ( #9230 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-03 19:26:27 -08:00
argosphil
4257457c6a
Allow relative paths in cpAsync again ( #9184 )
...
* allow relative paths in cpAsync again
* test for #9024
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-03-03 16:30:34 -08:00
Cameron Haley
b5cea9a20c
Avoid manually destroying stream when IncomingMessage stream is done reading ( #9219 )
...
* Avoid manually destroying stream when IncomingMessage stream is done reading
* Add test
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-03-03 16:29:13 -08:00
Jarred Sumner
49ccad9367
Finish jest.clearAllMocks() implementation ( #9217 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-03 03:48:13 -08:00
Jarred Sumner
71405ff4dc
Fix regression from 648d5ae ( #9215 )
...
* Slightly reduce number of system calls on Linux
* Fix regression from 648d5aecf3
648d5aecf3 caused HTTP response bodies sent streamingly with a single chunk to include an extraneous 0\r\n\r\n chunk, leading valid clients to close the connection prematurely.
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-03 00:02:44 -08:00
Jarred Sumner
0017dbec4e
Fixes #9180 ( #9212 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-02 21:42:57 -08:00
Yash Singh
b2794ad7cf
feat: implement expect.assertions and expect.hasAssertions ( #9190 )
...
* chore: merge oven-sh/bun
* chore: merge oven-sh/bun
* chore: merge oven-sh/bun
* fix: comptime for compiling
* fix: error reporting
* chore: revert runner.node.mjs
* fix: dont construct err b4
* chore: rm force throw test
* chore: rerun
* chore: reset unrelated changes
* fix: return undefined
* fix: dont return undefined on invalid args
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-03-01 20:17:44 -08:00