diff --git a/package.json b/package.json index 7b5622555..5d91255fb 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "fix:prettier": "prettier --write .", "generate-ruleset-parser": "lezer-generator src/scripts/ruleset/ruleset.grammar -o src/scripts/ruleset/parser.js --noTerms", "generate-third-party-notices": "tsx scripts/generate-third-party-notices.ts", - "test": "tsx scripts/test.ts" + "test": "tsx --test src/**/*.test.ts" }, "type": "module", "workspaces": [ diff --git a/scripts/test.ts b/scripts/test.ts deleted file mode 100644 index 5cec16a10..000000000 --- a/scripts/test.ts +++ /dev/null @@ -1,16 +0,0 @@ -import child_process from "node:child_process"; -import { globby } from "globby"; - -async function main() { - const cp = child_process.spawn( - process.execPath, - ["--import", "tsx", "--test", ...(await globby("src/**/*.test.ts"))], - { stdio: "inherit" }, - ); - process.exitCode = await new Promise((resolve, reject) => { - cp.on("close", resolve); - cp.on("error", reject); - }); -} - -await main();