Compare commits

...

5 Commits

Author SHA1 Message Date
Meghan Denny
f8376f2e1f raise 2025-11-11 23:34:19 -08:00
Meghan Denny
93b7cc3c60 windows isnt a distro 2025-11-11 21:59:24 -08:00
Meghan Denny
13eafbd0a6 fix this detection 2025-11-11 21:32:39 -08:00
Meghan Denny
dd21a2f4ae address ci 2025-11-11 21:02:58 -08:00
Meghan Denny
a5af33c14c ci: do not globally override per-test bun:test timeout duration 2025-11-11 18:39:49 -08:00
56 changed files with 123 additions and 63 deletions

View File

@@ -81,7 +81,7 @@ function getNodeParallelTestTimeout(testPath) {
return 90_000;
}
if (!isCI) return 60_000; // everything slower in debug mode
if (options["step"]?.includes("-asan-")) return 60_000;
if (isASAN) return 60_000;
return 20_000;
}
@@ -169,8 +169,12 @@ const { values: options, positionals: filters } = parseArgs({
},
},
});
startGroup("CLI Options", () => {
console.log(options);
});
const cliOptions = options;
const isASAN = options["step"]?.includes("-asan-");
if (cliOptions.junit) {
try {
@@ -594,11 +598,11 @@ async function runTests() {
NO_COLOR: "1",
BUN_DEBUG_QUIET_LOGS: "1",
};
if ((basename(execPath).includes("asan") || !isCI) && shouldValidateExceptions(testPath)) {
if ((isASAN || !isCI) && shouldValidateExceptions(testPath)) {
env.BUN_JSC_validateExceptionChecks = "1";
env.BUN_JSC_dumpSimulatedThrows = "1";
}
if ((basename(execPath).includes("asan") || !isCI) && shouldValidateLeakSan(testPath)) {
if ((isASAN || !isCI) && shouldValidateLeakSan(testPath)) {
env.BUN_DESTRUCT_VM_ON_EXIT = "1";
env.ASAN_OPTIONS = "allow_user_segv_handler=1:disable_coredump=0:detect_leaks=1:abort_on_error=1";
// prettier-ignore
@@ -1309,12 +1313,15 @@ async function spawnBun(execPath, { args, cwd, timeout, env, stdout, stderr }) {
*/
async function spawnBunTest(execPath, testPath, opts = { cwd }) {
const timeout = getTestTimeout(testPath);
const perTestTimeout = Math.ceil(timeout / 2);
const absPath = join(opts["cwd"], testPath);
const isReallyTest = isTestStrict(testPath) || absPath.includes("vendor");
const args = opts["args"] ?? [];
const testArgs = ["test", ...args, `--timeout=${perTestTimeout}`];
const testArgs = ["test", ...args];
if (process.env.BUILDKITE_STEP_IDENTIFIER?.includes("-ubuntu-")) testArgs.push(`--timeout=${10_000}`);
if (process.env.BUILDKITE_STEP_IDENTIFIER?.includes("-alpine-")) testArgs.push(`--timeout=${10_000}`);
if (process.env.BUILDKITE_STEP_IDENTIFIER?.startsWith("windows-")) testArgs.push(`--timeout=${10_000}`);
if (isASAN) testArgs.push(`--timeout=${30_000}`);
// This will be set if a JUnit file is generated
let junitFilePath = null;
@@ -1340,11 +1347,11 @@ async function spawnBunTest(execPath, testPath, opts = { cwd }) {
GITHUB_ACTIONS: "true", // always true so annotations are parsed
...opts["env"],
};
if ((basename(execPath).includes("asan") || !isCI) && shouldValidateExceptions(relative(cwd, absPath))) {
if ((isASAN || !isCI) && shouldValidateExceptions(relative(cwd, absPath))) {
env.BUN_JSC_validateExceptionChecks = "1";
env.BUN_JSC_dumpSimulatedThrows = "1";
}
if ((basename(execPath).includes("asan") || !isCI) && shouldValidateLeakSan(relative(cwd, absPath))) {
if ((isASAN || !isCI) && shouldValidateLeakSan(relative(cwd, absPath))) {
env.BUN_DESTRUCT_VM_ON_EXIT = "1";
env.ASAN_OPTIONS = "allow_user_segv_handler=1:disable_coredump=0:detect_leaks=1:abort_on_error=1";
// prettier-ignore

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
// crash inside uv_sleep

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
// crash inside uv_async_init

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test.todoIf(["test.js", "test-gcable.js", "test-gcable-callback.js"].includes(file))(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test.todoIf(["test.js"].includes(file))(file, () => {

View File

@@ -4,7 +4,7 @@ import { build, run } from "../../../harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
// crash inside uv_queue_work

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test.todoIf(["test.js", "test2.js", "test_threads.js"].includes(file))(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,10 +1,11 @@
import { test } from "bun:test";
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
// crash inside uv_thread_create

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test.todoIf(["test-async-hooks.js"].includes(file))(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
// Missing expected exception.

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {

View File

@@ -1,10 +1,10 @@
import { isMacOS } from "harness";
import { isMacOS, isWindows } from "harness";
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test.todoIf(["test.js"].includes(file) && isMacOS)(file, () => {

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
// crash inside uv_thread_create

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
// unsupported uv function: uv_check_init

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
// unsupported uv function: uv_sleep

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
// AssertionError: Missing expected exception (DataCloneError).

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
// Assertion failed: (status == napi_pending_exception), function Test, file test_worker_terminate.c, line 21.

View File

@@ -1,9 +1,10 @@
import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
import { isWindows } from "harness";
test("build", async () => {
await build(import.meta.dir);
});
}, isWindows ? 60_000 : undefined);
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
test(file, () => {