Ashcon Partovi
Ashcon Partovi
```ts type SpawnOptions = { // Process will exit if duration (millis) is exceeded timeout?: number; // Process will exit if signal is aborted signal?: AbortSignal; }; ```
It's too easy to mix up `test:describe` with `jsc:describe`. This would be a breaking change, but it's on the `jsc` APIs, which is probably okay at stage. 
To run Node.js tests, we need to support `primordials`, likely only exposed using a special flag. Example from [`lib/internal/errors.js`](https://github.com/nodejs/node/blob/main/lib/internal/errors.js) ```js // .. SafeMap, SafeWeakMap, String, StringPrototypeEndsWith, StringPrototypeIncludes, StringPrototypeSlice, StringPrototypeSplit, StringPrototypeStartsWith,...
We need to implement stubs for `process.config` so some test code works. ```js 38 | const hasIntl = !!process.config.variables.v8_enable_i18n_support; ^ TypeError: undefined is not an object (evaluating 'process.config.variables') at /node/test/common/index.js:38:18...
[`decompress`](https://www.npmjs.com/package/decompress) is a popular package that decompresses files. After the issues below are fixed, it should work in Bun. - #1757
If a package is installed and has no types, Bun could attempting to install `@types/{package}` to the `devDependencies` so that auto-completion works better in IDEs. /cc @colinhacks for thoughts
Even if you explicitly set the `Request` body to be `null`, it is always a `ReadableStream` instead. It should be `null`. ```js const request = new Request("http://localhost", { method: "GET",...
```ts import { afterAll } from "bun:test"; // ... afterAll(() => { console.log("Hi"); }); ``` The code in the `afterAll` block does not run, under any circumstance.
Some of [`tty.WriteStream`](https://nodejs.org/api/tty.html#class-ttywritestream) may already be implemented, but there are some missing pieces. ```ts 4 | const settings_1 = require("./settings"); 5 | function termwidth(stream) { 6 | if (!stream.isTTY) {...