Files
familysync/apps/pwa/tsconfig.e2e.json
T
Lucas BergerandClaude Opus 4.8 4cd7931c3c fix(07-03): make e2e typecheck pass — add DOM lib to tsconfig.e2e, cast styleHandle el to Element
Playwright transpiles specs without typechecking (esbuild), so layout.spec.ts ran
green while `tsc -p tsconfig.e2e.json` failed: page.evaluate(() => document...)
callbacks need the DOM lib, and styleHandle.evaluate((el) => el.remove()) typed el as
Node (no .remove()). Phase 8 CI runs the typecheck gate, so this would have broken CI.
Adds DOM/DOM.Iterable to the e2e tsconfig (also covers 07-04 specs) and casts el to Element.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-11 02:06:15 -04:00

10 lines
213 B
JSON

{
"extends": "./tsconfig.json",
"compilerOptions": {
"types": ["node"],
"lib": ["ES2023", "DOM", "DOM.Iterable"]
},
"include": ["playwright.config.ts", "e2e/**/*"],
"exclude": ["node_modules"]
}