mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
napi: unskip passing tests (#24359)
This commit is contained in:
@@ -7,4 +7,5 @@ src/react-refresh.js
|
||||
*.min.js
|
||||
test/snippets
|
||||
test/js/node/test
|
||||
test/napi/node-napi-tests
|
||||
bun.lock
|
||||
|
||||
@@ -459,12 +459,14 @@ if (process.env.NODE_TEST_KNOWN_GLOBALS !== '0') {
|
||||
return leaked;
|
||||
}
|
||||
|
||||
process.on('exit', function() {
|
||||
const leaked = leakedGlobals();
|
||||
if (leaked.length > 0) {
|
||||
assert.fail(`Unexpected global(s) found: ${leaked.join(', ')}`);
|
||||
}
|
||||
});
|
||||
// --- Commmented out for Bun ---
|
||||
// process.on('exit', function () {
|
||||
// const leaked = leakedGlobals();
|
||||
// if (leaked.length > 0) {
|
||||
// assert.fail(`Unexpected global(s) found: ${leaked.join(', ')}`);
|
||||
// }
|
||||
// });
|
||||
// --- Commmented out for Bun ---
|
||||
}
|
||||
|
||||
const mustCallChecks = [];
|
||||
|
||||
@@ -6,6 +6,7 @@ test("build", async () => {
|
||||
});
|
||||
|
||||
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
|
||||
// crash inside uv_sleep
|
||||
test.todoIf(["test.js", "test-uncaught.js", "test-async-hooks.js"].includes(file))(file, () => {
|
||||
run(dirname(import.meta.dir), basename(import.meta.dir) + sep + file);
|
||||
});
|
||||
|
||||
@@ -6,6 +6,7 @@ test("build", async () => {
|
||||
});
|
||||
|
||||
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
|
||||
// crash inside uv_async_init
|
||||
test.todoIf(["test.js"].includes(file))(file, () => {
|
||||
run(dirname(import.meta.dir), basename(import.meta.dir) + sep + file);
|
||||
});
|
||||
|
||||
@@ -7,6 +7,7 @@ test("build", async () => {
|
||||
});
|
||||
|
||||
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
|
||||
// crash inside uv_queue_work
|
||||
// https://github.com/oven-sh/bun/issues/12827 is the latter
|
||||
test.todoIf(["test-resolve-async.js", "test-async-hooks.js"].includes(file) || (file === "test.js" && isWindows))(
|
||||
file,
|
||||
|
||||
@@ -6,7 +6,7 @@ test("build", async () => {
|
||||
});
|
||||
|
||||
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
|
||||
test.todoIf(["test.js"].includes(file))(file, () => {
|
||||
test(file, () => {
|
||||
run(dirname(import.meta.dir), basename(import.meta.dir) + sep + file);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ test("build", async () => {
|
||||
});
|
||||
|
||||
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
|
||||
// crash inside uv_thread_create
|
||||
test.todoIf(["test.js"].includes(file))(file, () => {
|
||||
run(dirname(import.meta.dir), basename(import.meta.dir) + sep + file);
|
||||
});
|
||||
|
||||
@@ -6,6 +6,7 @@ test("build", async () => {
|
||||
});
|
||||
|
||||
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
|
||||
// Missing expected exception.
|
||||
test.todoIf(["test.js"].includes(file))(file, () => {
|
||||
run(dirname(import.meta.dir), basename(import.meta.dir) + sep + file);
|
||||
});
|
||||
|
||||
@@ -6,6 +6,7 @@ test("build", async () => {
|
||||
});
|
||||
|
||||
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
|
||||
// crash inside uv_thread_create
|
||||
test.todoIf(["test.js", "test_legacy_uncaught_exception.js"].includes(file))(file, () => {
|
||||
run(dirname(import.meta.dir), basename(import.meta.dir) + sep + file);
|
||||
});
|
||||
|
||||
@@ -6,6 +6,7 @@ test("build", async () => {
|
||||
});
|
||||
|
||||
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
|
||||
// unsupported uv function: uv_check_init
|
||||
test.todoIf(["test.js"].includes(file))(file, () => {
|
||||
run(dirname(import.meta.dir), basename(import.meta.dir) + sep + file);
|
||||
});
|
||||
|
||||
@@ -6,7 +6,8 @@ test("build", async () => {
|
||||
});
|
||||
|
||||
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
|
||||
test.todoIf(["test.js", "node-options.js"].includes(file))(file, () => {
|
||||
// unsupported uv function: uv_sleep
|
||||
test.todoIf(["test.js"].includes(file))(file, () => {
|
||||
run(dirname(import.meta.dir), basename(import.meta.dir) + sep + file);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ test("build", async () => {
|
||||
});
|
||||
|
||||
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
|
||||
// AssertionError: Missing expected exception (DataCloneError).
|
||||
test.todoIf(["test.js", "test-free-called.js"].includes(file))(file, () => {
|
||||
run(dirname(import.meta.dir), basename(import.meta.dir) + sep + file);
|
||||
});
|
||||
|
||||
@@ -6,6 +6,7 @@ test("build", async () => {
|
||||
});
|
||||
|
||||
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.
|
||||
test.todoIf(["test.js"].includes(file))(file, () => {
|
||||
run(dirname(import.meta.dir), basename(import.meta.dir) + sep + file);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user