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")}";`,