aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-12-10[transpiler] Improve constant propagationGravatar Jarred Sumner 1-0/+84
2022-12-10Implement simple version of inlining single-use expressions and statementsGravatar Jarred Sumner 1-0/+429
2022-12-09Deprecate very incomplete Solid.js JSX transformGravatar Jarred Sumner 31-3057/+0
We don't have time to do a good job of this and Bun.plugin makes it possible to use Solid with Bun
2022-12-07[node:events] EventEmitter#on and EventEmitter#off should return the ↵Gravatar Jarred Sumner 1-0/+10
EventEmitter instance
2022-12-07fix(stream): Fix Transform class constructor fn (#1583)Gravatar Derrick Farris 1-0/+47
* fix(stream): fix ReadableFromWeb class, fix Transform * test(stream): add tests for .call on stream constructors
2022-12-06Update types (#1581)Gravatar Colin McDonnell 1-3/+3
* Fix TS types, improve child_process types * Add prettier * Add ArrayBuffer types * Add namespace Bun, improve types for SharedArrayBuffer, add toStrictEqual * Improve types, add test files for types * Update type tests * Fix typo * Add stdio * Stdio types * Use latest setup-bun * Update action * Update action * Update action Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu> Co-authored-by: Ashcon Partovi <ashcon@partovi.net>
2022-12-06fix child process testGravatar Dylan Conway 1-1/+1
2022-12-06add server scheduleDeinit, ignore logs in testGravatar Dylan Conway 1-6/+4
2022-12-06fix event emitter castGravatar Dylan Conway 1-6/+0
2022-12-05Add some more text decoder testsGravatar Jarred Sumner 1-0/+33
2022-12-05Make `console` an `AsyncIterable`Gravatar Jarred Sumner 3-0/+104
2022-12-05more tests for event emitter weirdnessGravatar Jarred Sumner 1-0/+59
2022-12-04Update test-test.test.tsGravatar Jarred Sumner 1-0/+8
2022-12-04Update child_processGravatar Jarred Sumner 1-4/+3
2022-12-04[test] Ensure console.log(globalThis) doesn't crashGravatar Jarred Sumner 1-0/+1
2022-12-04Rename fileGravatar Jarred Sumner 1-0/+0
2022-12-04Add some basic tests for process.stdoutGravatar Jarred Sumner 3-0/+101
2022-12-04Silence incorrect test failureGravatar Jarred Sumner 1-0/+1
2022-12-04[Bun.serve] Implement `Content-Range` support with `Bun.file()`Gravatar Jarred Sumner 1-1/+159
2022-12-03[test] Add a couple tests for subarray toEqualGravatar Jarred Sumner 1-0/+3
2022-12-02Push failing testsGravatar Jarred Sumner 1-14/+126
2022-12-02add deps for make test commandGravatar Dylan Conway 1-1/+3
2022-12-02Add `AbortSignal.timeout`Gravatar Jarred Sumner 1-0/+12
2022-12-02matchers for less than and greater than (#1573)Gravatar Dylan Conway 1-0/+449
* toBeGreaterThan with tests * toBeGreaterThanOrEqual and tests * toBeLessThan and toBeLessThanOrEqual with tests * expect types * switch expressions
2022-12-02Update testGravatar Jarred Sumner 2-27/+35
2022-12-02[node:event] Add `captureRejectionSymbol`Gravatar Jarred Sumner 1-2/+9
2022-12-02feat(process): add process.{stdin, stdout, stderr} support (#1495)Gravatar Derrick Farris 5-59/+205
* fix(stream): get Duplex working * feat(process): add stdin,stdout,stderr in a semi-broken state (pipes??) * test(NodeTestHelpers): fix test names * test(NodeTestHelpers): add test for createDoneDotAll done called w error * test(NodeTestHelpers): remove stray console.log * fix(stream): fix bug in Duplex, Readable * test(process.stdio): rename test * fix(process.stdio): change onData listener to onReadable * refactor(streams): add file-wide debug fn, destructure opts * fix(child_process): check isCallable on promise * fix: get stdio streams mostly working (mostly) * fix(child_process): wait until stream is drained before calling end? * fix(child_process): change to result?.then * debug(child_process,streams): add EE id tracking, add shim for stdio after handle is dead * test(child_process): fix double pipe test, temp fix for ChildProcess.kill() return val * fix(child_process): remove immediate emit of exit on kill * debug(streams): add more debug log * debug(streams): add more debug logs part 2 * feat(streams,fs): add NativeWritable, adapt fs.WriteStream and fs.ReadStream to native
2022-12-02Tests for set-CookieGravatar Jarred Sumner 1-2/+76
2022-12-02[fetch] Implement `Headers#getAll` and `Headers#getSetCookie()`Gravatar Jarred Sumner 1-0/+25
This matches Deno's behavior (get() combines, iterator preserves the order, set and append combine), but implements both the Cloudflare Workers `getAll()` and the potential standard `getSetCookie` function. The rationale for choosing both is to better support libraries which check for `getAll` and also because `getSetCookie` seems a little confusing (names are hard) This also makes `.toJSON` and JSON.stringify return an array for `Set-Cookie`
2022-12-02make the test run fasterGravatar Jarred Sumner 2-87/+91
2022-12-02Fix incorrect StringDecoder export testGravatar Jarred Sumner 1-2/+2
2022-12-02Fix running tests in older versions of bunGravatar Jarred Sumner 1-0/+2
2022-12-02Skip flaky testGravatar Jarred Sumner 1-16/+25
2022-12-02Faster testGravatar Jarred Sumner 1-5/+7
2022-12-02Add file descriptor leak testGravatar Jarred Sumner 1-0/+7
2022-12-02Add file descriptor leak testGravatar Jarred Sumner 1-4/+10
2022-12-01Fix crash when macros return a PromiseGravatar Jarred Sumner 1-8/+8
2022-12-01Faster testGravatar Jarred Sumner 1-6/+8
2022-12-01[fetch] Add test that invalid json rejects promiseGravatar Jarred Sumner 1-0/+22
2022-12-01[fetch] Implement `redirect: "manual"`Gravatar Jarred Sumner 1-0/+42
2022-12-01bun test `toStrictEqual` (#1568)Gravatar Dylan Conway 1-0/+125
* toStrictEqual and bug fix in deepEqual * rebase Remove some dead bindings code * remove debugging test * canGetIndexQuickly for array holes * isStrict template Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-12-01[`bun:sqlite`] ~15% perf improvement to all() and get()Gravatar Jarred Sumner 1-0/+18
2022-12-01Add test for DOMJIT call version of encodeIntoGravatar Jarred Sumner 1-2/+7
2022-11-30fix slow regex testsGravatar Dylan Conway 1-20/+26
2022-11-30Fix console.log regression with emojiGravatar Jarred Sumner 1-0/+4
2022-11-28Handle when the process already exited immediatelyGravatar Jarred Sumner 1-32/+40
2022-11-28toHaveProperty and tests (#1558)Gravatar Dylan Conway 1-113/+332
* toHaveProperty and tests * emoji tests
2022-11-28Fix failing spawn() and spawnSync() testsGravatar Jarred Sumner 2-96/+109
cc @ThatOneBro
2022-11-28Add test for processGravatar Jarred Sumner 1-3/+14
2022-11-27Add google fixtureGravatar Jarred Sumner 1-0/+16