17 lines
384 B
JavaScript
17 lines
384 B
JavaScript
import esbuild from "esbuild";
|
|
import { pathToFileURL } from "node:url";
|
|
|
|
await esbuild.build({
|
|
entryPoints: ["tests/date.test.ts"],
|
|
bundle: true,
|
|
platform: "node",
|
|
target: "node20",
|
|
outfile: "dist-tests/date.test.mjs",
|
|
format: "esm",
|
|
logLevel: "silent",
|
|
});
|
|
|
|
await import(pathToFileURL(`${process.cwd()}/dist-tests/date.test.mjs`).href);
|
|
console.log("Tests passed.");
|
|
|