mirror of
https://github.com/PerpetualSoftware/pad.git
synced 2026-09-11 21:39:01 +00:00
652584bcfa
* test(web): add jsdom/Svelte vitest project + Modal & breakpoint tests (TASK-2081) * test(web): update package-lock for jsdom test deps (TASK-2081 review)
29 lines
1.3 KiB
JSON
29 lines
1.3 KiB
JSON
{
|
|
"extends": "./.svelte-kit/tsconfig.json",
|
|
"compilerOptions": {
|
|
"rewriteRelativeImportExtensions": true,
|
|
"allowJs": true,
|
|
"checkJs": true,
|
|
"esModuleInterop": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"resolveJsonModule": true,
|
|
"skipLibCheck": true,
|
|
"sourceMap": true,
|
|
"strict": true,
|
|
"moduleResolution": "bundler"
|
|
},
|
|
// `exclude` fully REPLACES the generated .svelte-kit/tsconfig exclude (which
|
|
// only lists node_modules + service-worker), so node_modules is re-listed.
|
|
// The jsdom-only test harness (`*.svelte.test.ts` + `src/test/**`) imports
|
|
// dev deps (`@testing-library/*`, jsdom) that live in package.json but may
|
|
// be absent from the shared worktree node_modules until `npm install` runs;
|
|
// excluding them keeps `svelte-check` clean. vitest compiles these files via
|
|
// its own config, so they're still type-aware at test time (TASK-2081).
|
|
"exclude": ["node_modules/**", "src/test/**", "src/**/*.svelte.test.ts"]
|
|
// Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias
|
|
// except $lib which is handled by https://svelte.dev/docs/kit/configuration#files
|
|
//
|
|
// To make changes to top-level options such as include and exclude, we recommend extending
|
|
// the generated config; see https://svelte.dev/docs/kit/configuration#typescript
|
|
}
|