import { join } from "../../path/mod.ts";
type TestSuites = Record<string, string[]>;
interface Config { nodeVersion: string; ignore: TestSuites; tests: TestSuites; suitesFolder: string; versionsFolder: string;}
export const config: Config = JSON.parse( await Deno.readTextFile(new URL("./config.json", import.meta.url)),);
export const ignoreList = Object.entries(config.ignore).reduce( (total: RegExp[], [suite, paths]) => { paths.forEach((path) => total.push(new RegExp(join(suite, path)))); return total; }, [],);
export const testList = Object.entries(config.tests).reduce( (total: RegExp[], [suite, paths]) => { paths.forEach((path) => total.push(new RegExp(join(suite, path)))); return total; }, [],);