aboutsummaryrefslogtreecommitdiff
path: root/test/js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-03-19Reduce number of module scopes createdGravatar Jarred Sumner 4-7/+7
2023-03-19Remove usages of port numbers in testsGravatar Jarred Sumner 6-246/+269
2023-03-19Several bug fixes (#2427)Gravatar Jarred Sumner 8-18/+125
* Fix test * Fix segfault when unexpected type is passed in `expect().toThrow` * Fix issues with request constructor * Don't bother cloning headers when its empty * woops * more tests * fix incorrect test * Make the fetch error messages better * Update response.zig * Fix test that failed on macOS * Fix test * Remove extra hash table lookups * Support running dummy registry directly cc @alexlamsl * Update test * Update test * fixup * Workaround crash in test runner * Fixup test * Fixup test * Update os.test.js --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-03-180 length body is a null streamGravatar Jarred Sumner 1-2/+3
2023-03-18Hanging abort testGravatar Jarred Sumner 1-1/+3
2023-03-18Make this test more thoroughGravatar Jarred Sumner 1-2/+12
2023-03-18Always clear timers in node test harnessGravatar Jarred Sumner 1-12/+30
2023-03-18Make node-net tests less flakyGravatar Jarred Sumner 1-6/+10
2023-03-18[fetch] Make the default body value `null` when unspecifiedGravatar Jarred Sumner 1-0/+39
This is better aligned with the fetch spec
2023-03-18:nail_care:Gravatar Dylan Conway 1-2/+2
2023-03-18Fix several bugs (#2418)Gravatar Dylan Conway 1-0/+9
* utf16 codepoint with replacement character * Fix test failure with `TextEncoder("ascii')` * Add missing type * Fix Response.prototype.bodyUsed and Request.prototype.bodyUsed * Fix bug with scrypt error not clearing * Update server.zig * oopsie
2023-03-17Fix various fetch/response/request tests (#2416)Gravatar Dylan Conway 5-40/+192
* fix most fetch tests, skip a few * fastGet, toValueGC, and invalid init * bigint unreachable, range error, log process as process * remove extra fetch_headers * remove js_type parameter, check isObject() * throw invalid mime type error, use enum literal * switch back to promise rejection * RangeError pascal case
2023-03-17Feat(test): add toMatch (#2404)Gravatar zhiyuan 1-0/+33
2023-03-15remove trailing commaGravatar Dylan Conway 1-4/+4
2023-03-15Fix socket tests with connection errors (#2403)Gravatar Dylan Conway 1-1/+9
* release pending activity with connection error handler * unref poll_ref
2023-03-15Rename `expectObjectTypeCount` to `expectMaxObjectTypeCount`Gravatar Jarred Sumner 3-11/+11
2023-03-15feat(expect): update toBeInstanceOf (#2396)Gravatar zhiyuan 1-12/+7
* feat: update instanceof binding * fix: according to PR comments
2023-03-15Make the test work in any timezoneGravatar Jarred Sumner 1-9/+9
2023-03-15Fixes #2399Gravatar Jarred Sumner 1-0/+24
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>