mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 03:18:53 +00:00
10 lines
211 B
JavaScript
10 lines
211 B
JavaScript
import { basename } from "node:path";
|
|
|
|
export async function run(path) {
|
|
const { test, expect } = Bun.jest(path);
|
|
|
|
test(basename(path), async () => {
|
|
expect(import(path)).resolves.not.toThrow();
|
|
});
|
|
}
|