aboutsummaryrefslogtreecommitdiff
path: root/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-03-25[install] fix tests (#2488)Gravatar Alex Lam S.L 3-23/+33
- avoid creating spurious directories next to test scripts
2023-03-23Fixes #2462 (#2463)Gravatar Jarred Sumner 1-0/+58
2023-03-22test(undici): rm external http reqs from tests (#2459)Gravatar Derrick Farris 3-22/+208
* test(undici): rm external http reqs from tests * cleanup(http-test-server): remove finished TODOs * test(undici): fix server type, remove type:module to fix typings in test dir * test(undici): make the typings better * test(undici): fix typo
2023-03-22A couple bug fixes (#2458)Gravatar Dylan Conway 14-88/+346
* fix valid status code range * update path * highwatermark option * throw DOMException * remove extra transpiler output * more transpiler tests * comment * get index not quickly * replace with `getDirectIndex` * update abort test * throw out of range status code * promisify test fix * move stdio test instance files * working crypto tests * allow duplicate set-cookie headers * different formatting * revert, fix will be in different pr * it is called * use min buffer size * fix url tests * null origin for other protocols * remove overload * add very large file test * await * coerce to int64 * 64 * no cast * add todo blob url tests * use `tryConvertToInt52`
2023-03-22Fix types (#2453)Gravatar Colin McDonnell 55-218/+376
* WIP * WIP * WIP * WIP * Improve typechecking in type files * Fix typechecking * Update * Update submodule * CI for typechecking * Add ci * Update commands * Format after build * Dont use bunx * Rename job * Use nodemodules prettier * Update workflow * Use symlink * Debug * Debug * Clean up and rename jobs
2023-03-20Implement simple `workspaces` glob support in bun install (#2435)Gravatar Jarred Sumner 3-9/+56
* [bun install] Implement `packages/*`-style globs * Fix incorrect assertion * :nail_care: * remove extraneous console.log * Fix pointer to stack memory * Add a test with a scoped package name from a glob workspace * Fixup --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-03-19Reduce number of module scopes createdGravatar Jarred Sumner 5-9/+13
2023-03-19Remove usages of port numbers in testsGravatar Jarred Sumner 6-246/+269
2023-03-19Several bug fixes (#2427)Gravatar Jarred Sumner 11-31/+173
* 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 4-13/+28
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 6-94/+90
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 2-13/+3
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 4-2673/+6
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 5-30/+30
* [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-14Fix failing testGravatar Jarred Sumner 1-0/+1
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 5-189/+232
2023-03-14Move tobeInstanceOf() tests to expect.test.tsGravatar Ashcon Partovi 2-11/+53
2023-03-14Add tests for AbortSignal, AbortControllerGravatar Ashcon Partovi 4-16/+175
2023-03-14feat: add toBeInstanceOf matcher in expect (#2389)Gravatar zhiyuan 1-0/+11
2023-03-14Fix text formatting in .remoteAddress in `ServerWebSocket` and `Socket`Gravatar Jarred Sumner 2-0/+82
Fixes #2387