Skip to main content
Module

x/deno_dom/test/units.ts

Browser DOM & HTML parser in Deno
Extremely Popular
Go to Latest
File
import { dirname, join } from "https://deno.land/std@0.85.0/path/mod.ts";
const unitDir = join(dirname(new URL(import.meta.url).pathname), "units");const units = Array.from(Deno.readDirSync(unitDir)) .filter((file) => file.isFile && file.name.endsWith(".ts")) .map((file) => join("units", file.name));
// Change into the unitDirDeno.chdir(unitDir);
// Import all unit filesfor (const file of units) { await import("./" + file);}