aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-12-25[install] use default URL when only auth token is specified (#1664)Gravatar Alex Lam S.L 2-0/+40
Previously it would default to `http://localhost/` which was inconsistent with the case sans token. Use official `npm` registry as fallback in both cases.
2022-12-21Add test for stat()Gravatar Jarred Sumner 1-0/+9
2022-12-21fix jest hooks in bun-test (#1639)Gravatar Ethan Burrell 1-0/+76
* fix(jest) fix broken jest hooks * add tests
2022-12-20add tests for #1633 (#1635)Gravatar Alex Lam S.L 3-11/+69
- `setImmediate(fn, ...args)` - `setInterval(fn, delay, ...args)` - `setTimeout(fn, delay, ...args)`
2022-12-17bug compatible with `stdin.on("readable")` (#1626)Gravatar Alex Lam S.L 2-46/+69
2022-12-17Delete Oniguruma (#1625)Gravatar Jarred Sumner 3-873/+12
* Update .gitmodules * Delete oniguruma * Delete Oniguruma * Make this test less flaky * :scissors: Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-12-17Update transpiler.test.jsGravatar Jarred Sumner 1-17/+24
2022-12-17Implement `node:util/types`Gravatar Jarred Sumner 1-0/+281
Fixes #1617
2022-12-16add tests for `process.stdin` (#1621)Gravatar Alex Lam S.L 2-1/+81
2022-12-15[js parser] Fix bug where `const {resolve} = require` throws "require is not ↵Gravatar Jarred Sumner 1-4/+21
defined"
2022-12-15[node:process] Implement `process.argv0`, `process.execPath`Gravatar Jarred Sumner 1-0/+10
Fixes https://github.com/oven-sh/bun/issues/1599
2022-12-15fix(stream): make Readable.read work w/o _construct implemented (#1613)Gravatar Derrick Farris 1-3/+22
* fix(stream): put Readable._readableState.constructed default in spec (true, not false) * cleanup(readable): remove unnecessary _construct methods * test(stream): add test for Readable w/o _construct method
2022-12-13Don't call debug streams getter when not in debugGravatar Jarred Sumner 1-2/+2
2022-12-13Add a test for importing unknown file types as `file` loaderGravatar Jarred Sumner 2-0/+7
2022-12-13[crypto] Implement `scryptSync`Gravatar Jarred Sumner 1-0/+265
Fixes https://github.com/oven-sh/bun/issues/1228
2022-12-12[crypto] Implement crypto.timingSafeEqualGravatar Jarred Sumner 1-0/+38
This uses BoringSSL's memcmp function Fixes https://github.com/oven-sh/bun/issues/1308
2022-12-12fix(stream): Fix Readable.pipe() (#1606)Gravatar Derrick Farris 1-1/+27
* fix(stream): fix some debug logs that were breaking .pipe * fix(stream): another debug fix * test(stream): add test for .pipe
2022-12-11Add a test for some scopesGravatar Jarred Sumner 1-0/+48
2022-12-11cleanup some testsGravatar Jarred Sumner 5-47/+18
2022-12-10override `process.stdin.on()` correctly (#1603)Gravatar Alex Lam S.L 1-0/+6
* override `process.stdin.on()` correctly fixes #1601 * add tests
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