import { walk } from "../../fs/walk.ts";import { dirname, fromFileUrl, relative } from "../../path/mod.ts";import { assertEquals } from "../../testing/asserts.ts";import { config, testList } from "./common.ts";
const dir = walk(fromFileUrl(new URL(config.suitesFolder, import.meta.url)), { includeDirs: false, match: testList,});
const testsFolder = dirname(fromFileUrl(import.meta.url));
for await (const file of dir) { Deno.test({ name: relative(testsFolder, file.path), fn: async () => { const process = Deno.run({ cwd: testsFolder, cmd: [ "deno", "run", "-A", "--quiet", "--unstable", "require.ts", file.path, ], });
const { code } = await process.status(); process.close();
assertEquals(code, 0); }, });}