aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-02-02match formattingGravatar Dylan Conway 1-0/+0
2023-02-01feat: add `http.request` (#1959)Gravatar Derrick Farris 2-8/+390
* fix(node-test-helpers): make sure to call done with any Errors thrown from wrapped fn * feat(node:http): add http.request, patch some missing apis for IncomingRequest, etc. * fix(node:http): FakeSocket -> Socket * refactor(node:http): only save type from IncomingMessage.options for now * fix(node:http): remove unnecessary check for UInt8Array * perf(node:http): globalThis.fetch -> var fetch = Bun.fetch * todo(node:http): add notes about handling abort/timeout w/ AbortSignal * refactor(node:http): standardize on FakeSocket and this.#fakeSocket * fix(node:http): fix headers getter * fix(node:http): remove _headers * perf(node:http): make http headers lazy * fix(node:http): return bool from keepSocketAlive
2023-02-01change file extensionGravatar Dylan Conway 2-1/+1
2023-02-01fix text encoding for utf8 (#1967)Gravatar Dylan Conway 2-1/+63
* use character * replacement character * also test encoding decoded points * increase length by 1
2023-01-31Re-run prettier after changesGravatar Jarred Sumner 103-4506/+2749
2023-01-31mostly fix `node:timers`Gravatar Jarred Sumner 1-10/+16
2023-01-31Fixes fs.constantsGravatar Jarred Sumner 1-88/+80
2023-01-31[bun add] various fixes (#1953)Gravatar Alex Lam S.L 3-789/+312
2023-01-31Fix missing `*ms` getters in StatGravatar Jarred Sumner 1-0/+18
Related to #1949
2023-01-30Fix crash in `bun install <package-name>` (#1947)Gravatar Jarred Sumner 1-129/+355
* Fix crash in `bun install <package-name>` when <package-name> already exists * Prettier * Add test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-01-30fix `assert()` crash (#1941)Gravatar Alex Lam S.L 1-0/+8
2023-01-30report invalid input file as test failure (#1938)Gravatar Alex Lam S.L 1-2/+30
fixes #1935
2023-01-30[bunx] fix version parsing (#1937)Gravatar Alex Lam S.L 1-0/+64
2023-01-29Update child_process-node.test.jsGravatar Jarred Sumner 1-1/+1
2023-01-29Skip flaky testGravatar Jarred Sumner 1-1/+1
2023-01-29Fix flaky websocket testGravatar Jarred Sumner 1-10/+25
cc @dylan-conway, the tests should be able to run when cwd is not the test folder
2023-01-29Add check in testGravatar Jarred Sumner 1-1/+5
2023-01-29[breaking] Add `binaryType` option to Bun.connect & Bun.listenGravatar Jarred Sumner 1-3/+128
This is a breaking change because the default is `Buffer`, but previously the default was `Uint8Array`. While `Buffer` is a subclass of `Uint8Array`, it still technically is a breaking change because `slice` in `Uint8Array` is not semantically identical to `slice` in `Buffer` cc @colinhacks, the .d.ts changes I made here aren't great.
2023-01-29Update buffer.test.jsGravatar Jarred Sumner 1-8/+5
2023-01-29Add another latin1 testGravatar Jarred Sumner 1-0/+16
2023-01-29[buffer] Buffer.byteLength passes Node.js testsGravatar Jarred Sumner 1-6/+137
2023-01-28[bun add] fix more corner cases (#1930)Gravatar Alex Lam S.L 2-26/+187
2023-01-28Support running WASI (WebAssembly) files using `bun run` (#1929)Gravatar Jarred Sumner 3-20/+15
* another micro bench * Support running WASI --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-01-28parse `git+https://github.com/` as GitHub URLs (#1926)Gravatar Alex Lam S.L 2-5/+164
fixes #1921
2023-01-28normalise `bun add` package specifiers (#1924)Gravatar Alex Lam S.L 3-134/+361
- fix invalid buffer references fixes #1920
2023-01-28[WIP] append GitHub package after fully parsed (#1911)Gravatar Alex Lam S.L 4-75/+123
2023-01-28commit failing testsGravatar Jarred Sumner 1-0/+1682
2023-01-28Fixes #1913Gravatar Jarred Sumner 4-221/+347
2023-01-27prettierGravatar Jarred Sumner 1-156/+245
2023-01-27Fix flakinessGravatar Jarred Sumner 1-2/+3
2023-01-27ensure name is allocated with `toSliceClone` (#1917)Gravatar Dylan Conway 1-19/+15
* ensure name is allocated with `toSliceClone` * shorten toSliceClone
2023-01-27Update buffer.test.jsGravatar Jarred Sumner 1-6/+6
2023-01-27more websocket ref/deref testsGravatar Dylan Conway 2-7/+96
2023-01-27[`[bun hot]`] More reliability improvements to macOS watcherGravatar Jarred Sumner 1-9/+79
2023-01-26Another testGravatar Jarred SUmner 1-0/+51
2023-01-26More reliable `bun --hot` on LinuxGravatar Jarred SUmner 2-12/+65
2023-01-26Fixes #1907Gravatar Jarred Sumner 1-0/+91
2023-01-26Implement all pending resolve methods in DNS (#1903)Gravatar Ciro Spaciari 1-22/+122
* initial steps to create generic resolve * add soa * add naptr * add naptr * add mx and fix naptr * add resolve caa * fix Caa test * fix toJS from caa * add resolveNs * add resolvePtr * fix resolvePtr test * add resolveCname * add resolve rrtype options (still missing ANY) * fix Naptr * fix drainPendingCares
2023-01-26fix websocket hang (#1910)Gravatar Dylan Conway 2-1/+64
* ref and deref, and some tests * subprocess file * remove deref * use flag in test
2023-01-26parse package-spec from CLI correctly (#1895)Gravatar Alex Lam S.L 3-8/+135
* parse package-spec from CLI correctly fixes #861 * copy separately for `UpdateRequest.name` fix GItHub URL reporting in results update tests to reflect latest code changes * better fix for GitHub URL display issue
2023-01-25Add a testGravatar Jarred Sumner 1-0/+9
2023-01-24support GitHub URLs as dependencies (#1875)Gravatar Alex Lam S.L 1-31/+364
2023-01-24support `bun link` of scoped packages (#1892)Gravatar Alex Lam S.L 2-3/+202
2023-01-24Add failing testGravatar Jarred Sumner 1-13/+51
2023-01-24Add simple test for `bun --hot`Gravatar Jarred Sumner 3-0/+56
2023-01-24Update text-decoder.test.jsGravatar Jarred Sumner 1-0/+1
2023-01-24flakyGravatar Jarred Sumner 1-15/+28
2023-01-24Always allow importing `${package}/package.json`Gravatar Jarred Sumner 1-0/+10
2023-01-24Fixes #1887Gravatar Jarred Sumner 1-0/+47
2023-01-23Add DOMJIT testGravatar Jarred Sumner 1-1/+13