|
10 | 10 | "outDir": "./dist", |
11 | 11 | "rootDir": "." |
12 | 12 | }, |
13 | | - // `e2e/**/*.spec.ts`, NOT `e2e/**/*` (#7923). This package took the widened- |
14 | | - // `include` route rather than a sibling `tsconfig.test.json` because its |
15 | | - // `rootDir` is already the package root, so nothing here needs neutralising — |
16 | | - // the same repair #7312 applied to app-crm / app-todo. |
| 13 | + // This package took the widened-`include` route rather than a sibling |
| 14 | + // `tsconfig.test.json` because its `rootDir` is already the package root, so |
| 15 | + // nothing here needs neutralising — the same repair #7312 applied to |
| 16 | + // app-crm / app-todo. |
17 | 17 | // |
18 | | - // The glob is spec-scoped on purpose, and it is the trap the TEST_DEBT entry |
19 | | - // that this change deletes was written to warn about: `e2e/**/*` would also |
20 | | - // pull in `e2e/global-setup.ts`, a Playwright fixture rather than a test, |
21 | | - // which carries 6 errors of its own (3 `process.env` reads plus 3 gaps in |
22 | | - // test/node-shim.d.ts — no `mkdirSync`/`writeFileSync` on the `node:fs` shim |
23 | | - // and no `node:path` module at all). Billing the test layer for a non-test |
24 | | - // file is what the ledger note measured around, so the repair holds the same |
25 | | - // line. `global-setup.ts` therefore stays outside this program; it is filed |
26 | | - // separately rather than silently folded in here. |
27 | | - "include": ["src/**/*", "objectstack.config.ts", "test/**/*", "e2e/**/*.spec.ts"] |
| 18 | + // `e2e/**/*` is deliberately wholesale, not `e2e/**/*.spec.ts` (#8062): the |
| 19 | + // spec-scoped form left `e2e/global-setup.ts` — the fixture that authenticates |
| 20 | + // the whole smoke run — read by no tsc program at all, and the coverage gate |
| 21 | + // counts test files, so nothing else had an opinion on it either. The 6 errors |
| 22 | + // the narrow glob was avoiding are fixed at their source rather than excluded |
| 23 | + // (file-local `declare const process`, plus the `node:fs`/`node:path` members |
| 24 | + // in types/node-shim.d.ts), so the wholesale form now costs nothing. |
| 25 | + // |
| 26 | + // `playwright.config.ts` is named for the same reason: it configures that same |
| 27 | + // smoke lane and was dark in exactly the same way. `vitest.config.ts` is NOT |
| 28 | + // named — its `vitest/config` import transitively drags in the whole of |
| 29 | + // `@types/node`, which is precisely the type surface this package is |
| 30 | + // deliberately without (see types/node-shim.d.ts). |
| 31 | + "include": [ |
| 32 | + "src/**/*", |
| 33 | + "objectstack.config.ts", |
| 34 | + "playwright.config.ts", |
| 35 | + "types/**/*", |
| 36 | + "test/**/*", |
| 37 | + "e2e/**/*" |
| 38 | + ] |
28 | 39 | } |
0 commit comments