From 03de8e6c18c0581ff01e981a54c8907114d097c0 Mon Sep 17 00:00:00 2001 From: VirtualMachinist Date: Fri, 20 Nov 2026 09:29:47 -0500 Subject: [PATCH] Astro probe test: give the test project the tsconfig the astro preset reads The astro preset parses a .astro file with project: ./tsconfig.json, so the file must be in that program. The test's project tsconfig now names the directory the probe copies its twins to; a wildcard include skips the hidden .web-tops directory, so main's two astro probe tests failed after the Astro rules landed. Co-Authored-By: Claude Sonnet 5.5 --- src/cli/laws-probe-astro.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/cli/laws-probe-astro.test.ts b/src/cli/laws-probe-astro.test.ts index 19233ff..4c5ec52 100644 --- a/src/cli/laws-probe-astro.test.ts +++ b/src/cli/laws-probe-astro.test.ts @@ -18,7 +18,12 @@ function astroSite(off?: string): string { const turned = off === undefined ? "[]" : `[{ files: ["**/*.astro"], rules: { "${off}": "off" } }]`; put(dir, { - "tsconfig.json": '{ "extends": "' + join(KIT, "tsconfig.json") + '" }\n', + // The astro preset parses a .astro file with `project: ./tsconfig.json`, and a wildcard include skips the + // hidden `.web-tops/`, so the project's tsconfig names the directory the probe copies its twins to. + "tsconfig.json": JSON.stringify({ + extends: join(KIT, "tsconfig.json"), + include: [".web-tops/out/laws-probe/**/*"], + }), "package.json": '{ "type": "module", "dependencies": { "astro": "5.0.0" } }\n', "eslint.config.js": [ `import { eslintPreset } from "${join(KIT, "src/presets/eslint.js")}";`,