Files
bun.sh/test/napi/node-napi-tests/test/js-native-api/test_exception/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
350 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(file, () => {
run(dirname(import.meta.dir), basename(import.meta.dir) + sep + file);
});
}