mirror of
https://github.com/ByteAtATime/raycast-linux.git
synced 2025-12-23 10:11:57 +00:00
This commit introduces a complete testing setup using Vitest. It's configured it to handle both unit tests in a Node environment and component tests using JSDOM. The `vite.config.js` now defines two separate test projects ('client' and 'server') to manage these different environments. Lastly, to ensure the testing environment is setup correctly, it adds tests for the CommandPalette extension
20 lines
691 B
JSON
20 lines
691 B
JSON
{
|
|
"extends": "./.svelte-kit/tsconfig.json",
|
|
"compilerOptions": {
|
|
"allowJs": true,
|
|
"checkJs": true,
|
|
"esModuleInterop": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"resolveJsonModule": true,
|
|
"skipLibCheck": true,
|
|
"sourceMap": true,
|
|
"strict": true,
|
|
"moduleResolution": "bundler",
|
|
"types": ["@testing-library/jest-dom"]
|
|
}
|
|
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
|
|
// except $lib which is handled by https://kit.svelte.dev/docs/configuration#files
|
|
//
|
|
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
|
|
// from the referenced tsconfig.json - TypeScript does not merge them in
|
|
}
|