aboutsummaryrefslogtreecommitdiff
path: root/test/js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-03-15fix gc-related flaky test failures (#2402)Gravatar Alex Lam S.L 5-85/+69
2023-03-15Remove nested tests from harnessGravatar Ashcon Partovi 1-89/+27
2023-03-15Improve reliability of generated testsGravatar Ashcon Partovi 27-821/+921
2023-03-15fix `gc` import from harnessGravatar Dylan Conway 1-12/+0
2023-03-15fix fixtureGravatar Jarred Sumner 1-2/+2
2023-03-15:scissors:Gravatar Jarred Sumner 1-1/+0
2023-03-15Make this test more reliableGravatar Jarred Sumner 1-5/+5
2023-03-15Fix broken import path in testGravatar Jarred Sumner 2-2671/+5
2023-03-15add tsconfig and update path (#2401)Gravatar Dylan Conway 2-1/+13
2023-03-15allows Bun.serve to listen on IPV6 (#2400)Gravatar Ciro Spaciari 1-0/+30
2023-03-15[install] sanitise against malformed `bun.lockb` (#2397)Gravatar Alex Lam S.L 3-13/+12
* [install] sanitise against malformed `bun.lockb` fixes #2392 * fix `prettier` checks in unrelated files
2023-03-14don't delete bun-snapshotsGravatar Dylan Conway 2-4/+77
2023-03-14test added snapshots in new processGravatar Dylan Conway 4-83/+35
2023-03-14Update child_process-node.test.jsGravatar Jarred Sumner 1-4/+4
2023-03-14generate jest snapshots manuallyGravatar Dylan Conway 1-45/+0
2023-03-14Skip some more irrelevant testsGravatar Ashcon Partovi 5-130/+17
2023-03-14Implement `toMatchSnapshot()` (#2294)Gravatar Dylan Conway 16-71/+1390
* buggy snapshot * error output for failed snapshot * missing first * hints * open dir once, better cleanup * update flag * truncate on update * object and class snapshot formatting * array formatting * no function name, single item is empty array * string objects, maps, sets, promise * avoid using invalid memory * handle number objects * handle extending `Number` * boolean objects * snapshot tests and test updates * snapshot format for buffers * safer snapshot parsing * property matchers setup * strings and tests * generate classes with empty prototype * optional `propertyMatchers` parameter * new test folder structure * strings.eqlLong * globalObject.throwPretty() and expect.any tests * add updateSnapshot flag to help * move snapshot format out of `printErrorlikeObject` * empty object snapshot format * separate typed array, remove trailing comma * use `isCell`, object trailing commas * handle unicode * todo for primitive constructors * switch to `JSC.Node.Syscall.open` and `JSC.Maybe` * use js parser for snapshot files * deinit ast, log parse error * copy/paste most of `exports.ZigConsoleClient` * remove snapshot option * remove ordered properties option * remove snapshot format option from `exports.zig` * remove extra newlines * change mode * update test runner output * escape backticks faster * `bunx jest` in temp dir * remove buffered writer * add `toMatchSnapshot` to types * cleanup, switch to `pread` * cli `--update` flag * `--update-snapshots` * remove string object format
2023-03-14Update harness.tsGravatar Jarred Sumner 1-2/+28
2023-03-14Ignore irrelevant tests in encoding.test.tsGravatar Ashcon Partovi 2-3/+7
2023-03-14Fix node test harnessGravatar Jarred Sumner 4-189/+223
2023-03-14Move tobeInstanceOf() tests to expect.test.tsGravatar Ashcon Partovi 1-0/+53
2023-03-14Add tests for AbortSignal, AbortControllerGravatar Ashcon Partovi 2-12/+173
2023-03-14Fix text formatting in .remoteAddress in `ServerWebSocket` and `Socket`Gravatar Jarred Sumner 2-0/+82
Fixes #2387
2023-03-13Better test coverage for Request and ResponseGravatar Ashcon Partovi 2-0/+686
2023-03-13feat(net.createServer) and adds socket.connect IPC support (#2337)Gravatar Ciro Spaciari 2-18/+579
* added net.Server * fix fmt * fix cast and move test * fix node-net.tests.ts but breaks server data receive * fix end and close only emitting when data or pipe was added * fix socket starting paused * add echo test * fix fmt * fix fmt * on close if the socket is paused, keep paused until the user resumes it to match node behavior * resume on connect * fix getConnections, error on close, make _Handler private and create symbols for SocketServerHandlers * add path support (IPC) * fix unix domains support, add connect unix tests * fix unix socket tests * emit listening and listening error on next tick * fix connection flask test * try fix connect error on macos test * merge connection and drop tests * added exclusive option * fix socket.zig fmt * fix validation for options and add test for it * pass prettier fmt
2023-03-12fix `require.resolve` with an empty options object #2370 (#2371)Gravatar dave caruso 1-2/+6
* fix #2370 and import-meta test * edit test to not allow transpiler optimization
2023-03-09Add more tests for HeadersGravatar Ashcon Partovi 1-0/+457
2023-03-08Remove websocket test because it's not substantialGravatar Ashcon Partovi 2-23/+0
2023-03-08Add so many more tests, it's not even funnyGravatar Ashcon Partovi 25-37/+5150
2023-03-08Improve test harnessGravatar Ashcon Partovi 11-382/+613
2023-03-08More spec compliant `Blob.prototype.type` (#2340)Gravatar Jarred Sumner 1-0/+56
* Make `Blob.prototype. type` more spec compliant * Add a few more checks for isNumber() * Fix `make headers` * Safer JSValue.isString() * More tests for blob.slice * Make `Blob.prototype.type` more spec compliant * Add isASCII check * Fix types * Fix failing type test * Update blob.zig * Update blob.zig * Fix .eql check on empty values --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-03-07"binary" is an alias of "latin1"Gravatar Jarred Sumner 1-0/+6
Fixes https://github.com/oven-sh/bun/issues/2110
2023-03-07improve `Buffer` compatibility with Node.js (#2341)Gravatar Alex Lam S.L 1-1153/+979
* improve `Buffer` compatibility with Node.js * use `memmove()` allow `encoding` to be `undefined`
2023-03-07run prettierGravatar Jarred Sumner 5-19/+8
2023-03-07Add more test harnessGravatar Ashcon Partovi 6-0/+454
2023-03-07Fix html-rewriter.test.jsGravatar Ashcon Partovi 1-1/+1
2023-03-07Reorganize tests (#2332)Gravatar Ashcon Partovi 199-0/+31875