Files
zammad/tsconfig.base.json
Vladimir Sheremet 4e489121c5 Maintenance: Upgrade to Vitest 5 and make the frontend tests 4 times faster.
Vitest is updated to v5 and the pool is switched to `vmForks`, which cuts the
runtime of the frontend suite from ~250s to ~69s.

The new jsdom no longer allows `window.navigation` to be overridden, so the
tests that need it now go through a small `#shared/utils/navigation.ts`
indirection which can be mocked instead.

Co-authored-by: Vladimir Sheremet <vsheremet@cloudflare.com>
2026-09-04 11:37:22 +02:00

33 lines
1.0 KiB
JSON

{
"compilerOptions": {
"target": "es2023",
"lib": ["ES2023", "DOM", "WebWorker", "DOM.iterable"],
"module": "esnext",
"jsx": "preserve",
"sourceMap": true,
"removeComments": true,
"noEmit": true,
"importHelpers": true,
"strict": true,
"moduleResolution": "bundler",
"verbatimModuleSyntax": true,
"allowImportingTsExtensions": true,
"resolvePackageJsonImports": true,
"resolvePackageJsonExports": false,
"allowSyntheticDefaultImports": true,
"paths": {
"#mobile/*": ["./app/frontend/apps/mobile/*"],
"#desktop/*": ["./app/frontend/apps/desktop/*"],
"#shared/*": ["./app/frontend/shared/*"],
"#tests/*": ["./app/frontend/tests/*"],
"#cy/*": ["./.dev/cypress/*"],
},
"types": ["vitest/globals", "vitest/jsdom", "vite/client", "vite-plugin-pwa/client"],
"esModuleInterop": true,
"experimentalDecorators": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
},
}