Files
obsidian-notif/scripts/run-tests.mjs
T

17 lines
384 B
JavaScript
Raw Normal View History

2026-06-27 15:12:40 +08:00
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.");