aboutsummaryrefslogtreecommitdiff
path: root/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-07-05Formatdetect-libcGravatar Ashcon Partovi 1-2/+11
2023-07-05Fix incorrect signaturesGravatar Ashcon Partovi 1-7/+7
2023-07-05Fix detect-libcGravatar Ashcon Partovi 5-4/+33
2023-07-05Fixes #3512 (#3526)Gravatar Jarred Sumner 7-8/+94
* Fixes #3512 * Fix `clearTimeout` and `clearInterval` not cancelling jobs same-tick --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-05Fixes #3520 (#3522)Gravatar Jarred Sumner 1-0/+23
* Fixes #3520 * Update html_rewriter.zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-04use sengrid account on nodemailer test (#3517)bun-v0.6.13Gravatar Ciro Spaciari 2-14/+15
2023-07-04[tls] fix servername (#3513)Gravatar Ciro Spaciari 3-1/+68
* fix servername * add postgres tls tests * update test packages * add basic CRUD test
2023-07-04Add alias for readBigUInt64BE ... (#3514)Gravatar Ai Hoshino 1-0/+45
* Add alias for `readBigUInt64BE` ... Close: https://github.com/oven-sh/bun/issues/3338 * add some tests for `readBigUint64BE` alias * format code
2023-07-04reduce countGravatar Jarred Sumner 1-2/+2
2023-07-04bumpGravatar Jarred Sumner 3-2/+2
2023-07-04[install] fix run-time module loading (#3510)Gravatar Alex Lam S.L 1-16/+92
- fix version buffer confusion - improve workaround to handle cached modules fixes #3507
2023-07-04less flakyGravatar Jarred Sumner 1-1/+1
2023-07-03Allow zero length WebSocket client & server messages (#3488)Gravatar Jarred Sumner 2-118/+208
* Allow zero length WebSocket client & server messages * Add test * Clean this up a little * Clean up these tests a little * Hopefully fix the test failure in release build * Don't copy into the receive buffer * Less flaky --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-03Fix napi bugGravatar Jarred Sumner 1-1/+1
2023-07-03[fix] patch fs.watch sym link (#3481)Gravatar Ciro Spaciari 1-0/+55
* oopsie * add tests --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-07-03[tls] add socket parameter, setServername and ALPNprotocols support (#3457)Gravatar Ciro Spaciari 10-112/+115
* add socket parameter support * refactor #socket * add test and more fixs * some fixes * bump uws * handlers fix * more fixes * fix node net and node tls tests * fix duplicate port * fix deinit on CallbackJobs * cleanup * add setImmediate repro * add test to setImmediate * this is necessary? * fix prependOnce on native listener * try to findout the error on nodemailer CI * show error message * Update bun.lockb * prettier * Use exact versions of packages * add alpnProtocol support * update * emit error when connect fails on net.Socket * format * fix _write and cleanup * fixup * fix connect, add alpn test * fix socket.io * add socket parameter to TLSSocket * add TLSSocket socket first parameter * fixup and _start * remove flask tests * fmt --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-02Stub out `useFakeTimers` and `useRealTimers`Gravatar Jarred Sumner 1-9/+26
2023-07-02Support mocking `new Date()` & `Date.now()` in bun:test (#3501)Gravatar Jarred Sumner 1-0/+11
* Support changing the time * Bump WebKit * Update bun.lockb --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-02set content-length 0 in some cases (#3503)Gravatar dave caruso 1-0/+19
2023-07-02Use fast path for Base64 in `btoa` (#3504)Gravatar Jarred Sumner 1-6/+3
* Use fast path for Base64 in `atob` * Fix utf16, crash on linux --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-02[node:buffer] Implement `isUtf8` and `isAscii` (#3498)Gravatar Jarred Sumner 1-1/+23
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-02fix zero length env var (#3496)Gravatar dave caruso 1-0/+10
2023-07-02Fixes #3489 (#3490)Gravatar Jarred Sumner 1-0/+28
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-01Use exact versions in testsGravatar Jarred Sumner 7-27/+68
2023-07-01Make this test less flakyGravatar Jarred Sumner 1-1/+1
2023-07-01Make this test less flakyGravatar Jarred Sumner 1-1/+22
2023-07-01Make this test less flakyGravatar Jarred Sumner 1-2/+10
2023-07-01Use `BunString` in `SystemError` (#3485)Gravatar Jarred Sumner 1-2/+39
* Use `BunString` in SystemError * Use Bun::toStringRef when we will de-ref strings * Move `napi_create_error` to C++ to support `code` being a Symbol potentially * Update blob.zig * Make this test less flaky --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-01[WIP]Fix calling `Buffer.toString` with `(offset, length, encoding)` (#3467)Gravatar Ai Hoshino 1-0/+79
* Allow `toString` to be called with `(offset, length, encoding)`. Close: #3085 * handle undefined value * add tests for buffer.xxxSlice * fix parameters * fix offset and length
2023-07-01skip private class fields (#3484)Gravatar Dylan Conway 1-0/+56
2023-07-01Add testGravatar Jarred Sumner 1-0/+9
2023-07-01[jest] fix lifecycle hook execution order (#3461)Gravatar Alex Lam S.L 2-3/+34
* [jest] fix lifecycle hook execution order * strip `std.debug.assert()` from release build
2023-06-30[install] handle `workspace:` specifier correctly (#3474)Gravatar Alex Lam S.L 2-8/+52
fixes #3430
2023-06-29Fixes `node:http` and `node:stream` so `ytdl-core` works. (#3452)Gravatar dave caruso 1-1/+22
* fix crash in readablestate * make node:https request+get actually use https * use a native readablestream in IncomingMessage * tweaks * fix abort crash * emit close by default * remove abort. this isnt a real function * add validate functions, fixup some other requested changes. not done yet * Update WebCoreJSBuiltins.cpp * Update JSReadableState.cpp * Add some missing exports --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-29Make `node:os` `tmpdir` more consistent with Node.jsGravatar Jarred Sumner 1-0/+5
2023-06-29[bundler] avoid printing unnecessary declarations (#3456)Gravatar Dylan Conway 1-0/+71
* skip declarations without values * tests * deoptimize cjs when decls are needed
2023-06-29cant believe i missed this (#3453)Gravatar dave caruso 1-0/+13
2023-06-29Revert "[jest] fix lifecycle hook execution order (#3447)" (#3455)Gravatar Jarred Sumner 2-34/+3
This reverts commit 182e8aa1392af9ba92beccce06f49f8e4593fe5c.
2023-06-28Another testGravatar Jarred Sumner 1-0/+9
2023-06-28Add GC test for errorsGravatar Jarred Sumner 1-0/+26
2023-06-28use main field over module for runtime (#3448)Gravatar Dylan Conway 1-0/+200
* use main field over module for runtime * move flag to `Resolver` * set `prefer_module_field` in `initWithModuleGraph`
2023-06-28Fix bad testGravatar Jarred Sumner 1-2/+2
2023-06-28export resolve6 from dns/promises (#3450)Gravatar dave caruso 2-0/+33
2023-06-28[jest] fix lifecycle hook execution order (#3447)Gravatar Alex Lam S.L 2-3/+34
2023-06-28Make these tests do moreGravatar Jarred Sumner 1-1/+13
2023-06-28Introduce `await Bun.file(path).exists()` (#3446)Gravatar Jarred Sumner 1-0/+8
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-28Error.prototype.stack gets sourcemapped stacktraces and introduce ↵Gravatar Jarred Sumner 1-0/+12
Error.appendStackTrace (#3441) * Fix potential crash when reading sourcemapped stack traces * Format & sourcemap Error.prototype.stack * prevent double sourcemapping * Introduce Error.appendStackTrace * Fix source url * hide private stack traces in non-debug builds * fixes #3443 * Bump WebKit * Fix test failure in vm.test * Support new() & add test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-28[install] workaround run-time module loading issue (#3432)Gravatar Alex Lam S.L 2-79/+97
2023-06-27[bun:sqlite] enable FTS5 on linux build (#3431)Gravatar Benjamin Ryan 1-0/+18
* [bun:sqlite] enable FTS5 on linux build * prettier
2023-06-27Add builtin exports listGravatar Jarred Sumner 4-0/+30211