aboutsummaryrefslogtreecommitdiff
path: root/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-02-13Add pretty printer for FormDataGravatar Jarred Sumner 1-0/+9
2023-02-13Add dynamic port assigning to Bun.serve (#2062)Gravatar Michał Warda 1-0/+29
2023-02-13Fixes https://github.com/oven-sh/bun/issues/1456Gravatar Jarred Sumner 1-0/+16
2023-02-13Implement `FormData` (#2051)Gravatar Jarred Sumner 3-0/+387
* Backport std::forward change * Implement `FormData` * Fix io_darwin headers issue * Implement `Blob` support in FormData * Add test for file upload * Fix bug with Blob not reading Content-Type * Finish implementing FormData * Add FormData to types --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-02-12[install] support `git://github.com/` dependencies (#2059)Gravatar Alex Lam S.L 1-0/+69
2023-02-12prettier + stop serverGravatar Jarred Sumner 1-119/+101
2023-02-12Return server on listen (#2057)Gravatar Michał Warda 1-1/+8
2023-02-12Set `require("module").globalPaths` to empty arrayGravatar Jarred Sumner 1-0/+5
https://github.com/oven-sh/bun/issues/1641#issuecomment-1427017442
2023-02-11fix string corruption in FS entry cache (#2055)Gravatar Alex Lam S.L 1-2/+41
2023-02-11fix segfault during non-install script execution (#2045)Gravatar Alex Lam S.L 1-1/+32
2023-02-11Fixes https://github.com/oven-sh/bun/issues/2052Gravatar Jarred Sumner 1-0/+10
2023-02-10Fix #631: bun add throwing JSON lexer bug (#2041)Gravatar Justin Whear 1-0/+38
* add double-backslash to list of control chars * update test * stderr as string
2023-02-10[install] fix duplicate check on `peerDependencies` (#2039)Gravatar Alex Lam S.L 1-1/+46
fixes #2037
2023-02-09fix assertion failure (#2033)Gravatar Alex Lam S.L 1-0/+8
2023-02-09[install] fix flaky tests (#2032)Gravatar Alex Lam S.L 2-37/+37
2023-02-09[simdutf] workaround validation OOB access (#2031)Gravatar Alex Lam S.L 1-1/+9
2023-02-09[streams] fix byte accounting (#2029)Gravatar Alex Lam S.L 1-1/+19
fixes #1939
2023-02-09[bun:test] Auto-import jest globals in test filesGravatar Jarred Sumner 2-0/+36
2023-02-08cleanup util.testGravatar Jarred Sumner 1-4/+2
2023-02-08[install] pick `latest` tagged version by default (#2016)Gravatar Alex Lam S.L 2-6/+117
* [install] pick `latest` tagged version by default fixes #1993 * update `package.json` the same way as `npm
2023-02-08utf16 to utf8 conversion validation (#2001)Gravatar Dylan Conway 1-1/+19
* use replacement character for invalid surrogate pairs * return index of non-ascii * non-allocating case * edge cases * function rename * oops * get length once, index counter
2023-02-08[install] assorted fixes & improvements (#2011)Gravatar Alex Lam S.L 7-67/+245
- take `peerDependencies` into account during package placement - do not recursively resolve `workspaces` (matches `npm`) - link binaries to non-root packages correctly - prune empty nodes during dependency tree construction - support non-standard `workspace:` specifier
2023-02-06Fix failing test in debug modeGravatar Jarred Sumner 1-4/+14
2023-02-06Throw on process.bindingGravatar Jarred Sumner 1-0/+4
2023-02-06Fix test failing on macOSGravatar Jarred Sumner 1-1/+2
2023-02-06[WIP] fix corner cases with aliases dependencies (#2000)Gravatar Alex Lam S.L 2-3/+150
* fix corner cases with aliases dependencies * in-memory convert legacy `bun.lockb`
2023-02-06Make `Stat` functions fastGravatar Jarred Sumner 1-1/+28
2023-02-06Expose Dirent and Stats (#1998)Gravatar Michał Warda 1-0/+11
* Expose dirent and stats * Expose Dirent and Stats inside fs * Add tests for Dirent and Stats exposing * Automatically generate bindings
2023-02-05speed it up a little moreGravatar Jarred Sumner 1-12/+120
2023-02-03Support passing `Date` to `Bun.sleep`Gravatar Jarred Sumner 1-0/+8
2023-02-03Add test for propagating exceptionGravatar Jarred Sumner 1-0/+23
2023-02-03Add missing crypto exportGravatar Jarred Sumner 1-0/+6
Fixes #1984
2023-02-03Introduce `await Bun.sleep(ms)`Gravatar Jarred Sumner 1-0/+15
2023-02-03Make it less flakyGravatar Jarred Sumner 1-1/+1
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 105-4533/+2760
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