Files
bun.sh/test/napi/node-napi-tests/test/node-api/test_async/do.test.ts
Meghan Denny 26cbcd21c1 test: split napi tests into separate files (#21475)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-29 22:33:19 -07:00

13 lines
428 B
TypeScript

import { basename, dirname, sep } from "node:path";
import { build, run } from "../../../harness";
test("build", async () => {
await build(import.meta.dir);
});
for (const file of Array.from(new Bun.Glob("*.js").scanSync(import.meta.dir))) {
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);
});
}