aboutsummaryrefslogtreecommitdiff
path: root/test/js (follow)
AgeCommit message (Collapse)AuthorFilesLines
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 2-0/+64
* 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 1-1/+1
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 8-110/+112
* 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-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 4-8/+7
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-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-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-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-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-27Fix `node:util.callbackify` (#3428)Gravatar Ai Hoshino 1-0/+323
* remove the incorrect parameters Close: https://github.com/oven-sh/bun/issues/3424 * fix error code * add callbackify tests * fix function type * ensure `done` is called when error occurred
2023-06-26Fix default export of `"module"` modulebun-v0.6.10Gravatar Jarred Sumner 1-0/+5
2023-06-26fix #3412 (#3422)Gravatar dave caruso 1-0/+14
2023-06-26webpack test and add empty `prototype` prop to module (#3421)Gravatar Dylan Conway 4-0/+48
2023-06-26Fix .rejectsGravatar Jarred Sumner 1-0/+22
2023-06-26`.randomInt()` support (#3357)Gravatar Silas Rech 1-0/+21
* Add initial .randomInt() fallback * Add basic .randomInt() test * Attempt creating a native implementation * Switch to JSC.wrapWithHasContainer * Switch to .jsNumberFromUint64(), it seems like using just .jsNumber() causes the number to overflow in some cases * Regenerate out folder after rebasing
2023-06-26Runtime support for `__esModule` annotations (#3393)Gravatar Jarred Sumner 11-0/+86
* Runtime support for `__esModule` annotations * Ignore `__esModule` annotation when `"type": "module"` is set --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-26test moved to `node-module-module.test.js`Gravatar Dylan Conway 1-6/+0
2023-06-26Implement writev & readv (#3419)Gravatar Jarred Sumner 1-0/+65
* [node:fs] Implement `writev` and `readv` * writev & readv tests * cast to const type * woops * cast --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-26implement `_nodeModulePaths` and `require.main.paths` (#3411)Gravatar Dylan Conway 1-0/+19
* tests in progress * add `require.main.paths`, add every dir up to root * remove imports
2023-06-25Fix test failures in import.meta (#3403)Gravatar Jarred Sumner 1-2/+9
* Fix test failures in import.meta * regenerate * Use bound functions for `import.meta.require` and `import.meta.require.resolve` and `Module.createRequire` --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>