aboutsummaryrefslogtreecommitdiff
path: root/test/js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-04-07fix(node:events): correct `node:events.once`, add testsderrick/fix/event-emitter-async-iterGravatar Derrick Farris 1-3/+295
2023-04-06fix(node:events): fix abort behaviorGravatar Derrick Farris 1-145/+160
2023-04-06test(node:events): remove `console.log`Gravatar Derrick Farris 1-1/+0
2023-04-06feat(node:events): finish `EE.AsyncIterator` and `node:events.on()`, add ↵Gravatar Derrick Farris 1-129/+132
some tests
2023-04-06wip(node:events): get async iter working, work through test flakinessGravatar Derrick Farris 1-35/+59
2023-04-06wip(node:events): fix `node:events.on` async iter to specGravatar Derrick Farris 3-96/+478
2023-04-06Fix `toEqual` when the second array has extra array holes (#2580)Gravatar Dylan Conway 1-0/+49
* iterate through remaining indexes, keep prop identifier * tests * format
2023-04-06Add last modify field "mtime" for FileBlob (#1431) (#2491)Gravatar Zhongwei Yao 2-0/+19
* Add lastModified field for FileBlob (#1431) lastModified value is epoch timestamp in millisecond unit. * update according to review comment.
2023-04-06bun-types: infer strict `Subprocess` from `Bun.spawn()` options, part 2 (#2573)Gravatar dave caruso 4-7/+7
2023-04-06cache needs to update, move to another process (#2578)Gravatar Dylan Conway 2-156/+171
2023-04-05prependGravatar Jarred Sumner 1-7/+3
2023-04-05Add tests for `bun test` with preload scripts (#2566)Gravatar Jake Boone 1-0/+106
* Use zsh-compatible syntax in cowsay example zsh interprets the string !" differently than bash or sh, but we can use single quotes in all of them. See https://unix.stackexchange.com/a/497335/548905. * Add tests for bun:test with preload scripts * Look at `stderr` in `bun test --preload` tests
2023-04-05PrettierGravatar Jarred Sumner 1-2/+2
2023-04-05fix(fetch.proxy) fix proxy authentication (#2554)Gravatar Ciro Spaciari 1-17/+84
* fix proxy authentication * add auth tests * remove unused
2023-04-05fix `deepEquals` with array holes and accessors (#2557)Gravatar Dylan Conway 1-0/+229
* `deepEqual` handles slow array indexes * another test * oops * remove bad test * compare indexes in non-strict mode * more tests
2023-04-05fix: modules to have null prototype (#2561)Gravatar hiroki osame 1-0/+4
2023-04-04Implement `import.meta.main` (#2556)Gravatar Jarred Sumner 4-0/+27
* Implement `import.meta.main` * Update main-test-1.js * Update fs.test.ts --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-04Dylan/fix some failing tests (#2544)Gravatar Jarred Sumner 5-23/+34
* handle `umask()` invalid arguments * move `bktree-fast` to test root, fix postinstall * fix fs test * could be baseline * handle different timezones * accidentally deleted tests * fix hang in `AbortSignal.timeout` * bring abort tests back * Revert "bring abort tests back" This reverts commit 0ff2ad5bf408694ac719b8ba0a38b16070e10201. * bunx node-gyp * bun x * fix typecheck * test * Update inspect.test.js --------- Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2023-04-01Add stubs for missing node builtins (#2534)Gravatar Jarred Sumner 1-0/+120
* Stub `node:v8` * Stub `node:trace_events` * Stub `node:repl` * Stub `node:inspector` * Stub `node:http2` * Stub `node:diagnostics_channel` * Stub `node:dgram` * Stub `node:cluster` * Link stubs * cleanup * Clean up the test * Implement `node:vm` stub * Cleanup `v8` module stub * Add missing `promises` export to node:stream * Implement `node:stream/promise` * Implement `node:assert/strict` * cleanup * better errors * Increaase timeout * Update inspector.exports.js * Make the version consistent * Implement `process.binding("constants")` * Update runner.node.mjs --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-03-29Fix date format (#2422) (#2474)Gravatar Adrien Zinger 1-0/+12
* Fix date format (#2422) * Add unit tests for #2422
2023-03-28More bug fixes (#2486)Gravatar Jarred Sumner 11-257/+342
* readline_promises test fix * fix `escapeHTML` for baseline builds * fs test fixes, use `tmpdir()` * add paths for `resolve.test.js` * isError with toString symbol and error prototype * comment about `toString` * skip async macro transform * test cleanup, skip stack format test * readline undo and redo fix * capture error from readline keypress * Update tcp-server.test.ts * use `removefileat` for recursive rmdir * use strong for `signal.reason` * initialize `m_flags` * directory with file fs test * recursive option * import expect * could be less than * move abort signal tests to another process * fix typecheck --------- Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2023-03-22test(undici): rm external http reqs from tests (#2459)Gravatar Derrick Farris 1-21/+40
* 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 13-76/+300
* 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 44-189/+302
* 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-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