aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/node-test-helpers.ts (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-02-01feat: add `http.request` (#1959)Gravatar Derrick Farris 1-6/+15
* fix(node-test-helpers): make sure to call done with any Errors thrown from wrapped fn * feat(node:http): add http.request, patch some missing apis for IncomingRequest, etc. * fix(node:http): FakeSocket -> Socket * refactor(node:http): only save type from IncomingMessage.options for now * fix(node:http): remove unnecessary check for UInt8Array * perf(node:http): globalThis.fetch -> var fetch = Bun.fetch * todo(node:http): add notes about handling abort/timeout w/ AbortSignal * refactor(node:http): standardize on FakeSocket and this.#fakeSocket * fix(node:http): fix headers getter * fix(node:http): remove _headers * perf(node:http): make http headers lazy * fix(node:http): return bool from keepSocketAlive
2023-01-31Re-run prettier after changesGravatar Jarred Sumner 1-17/+7
2023-01-13Fix broken test helperGravatar Jarred Sumner 1-2/+7
2023-01-08feat(node:readline): add node:readline and node:readline/promises (#1738)Gravatar Derrick Farris 1-0/+198
* feat(readline): WIP: add readline * test(helpers): add deepStrictEqual helper * feat(readline): add readline & readline/promises to loader * fix(node:events): emit newListener on new listener added * feat(readline): finish readline cb interface, add tests * fix(stream): fix Transform.end() * fix(node-test-helpers): correct throws behavior, improve how all asserts work * feat(readline/promises): add readline/promises * feat(assert): add assert.match * test(readline): uncomment more tests * fix(readline): MaxCeil -> MathCeil 🤦 * fix(readline): export promises from node:readline * fix(readline): temp fix for circular dependency * cleanup(readline): remove console.log * fix(readline): change true -> 0 for CommonJS export * perf(readline): micro-optimizations with some getters * perf(readline): lazy load isWritable * cleanup(readline): rename debug flag env var to BUN_JS_DEBUG