mirror of
https://github.com/vector-im/element-web.git
synced 2026-07-04 14:30:46 +00:00
45234b9c94
* Migrate more jest tests to vitest * Fix jest config * Fix jest config * Make remaining jest tests type-happy
37 lines
1.1 KiB
JSON
37 lines
1.1 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"allowImportingTsExtensions": true,
|
|
"experimentalDecorators": false,
|
|
"emitDecoratorMetadata": false,
|
|
"resolveJsonModule": true,
|
|
"esModuleInterop": true,
|
|
"useDefineForClassFields": true,
|
|
"module": "preserve",
|
|
"moduleResolution": "bundler",
|
|
"target": "es2022",
|
|
"noUnusedLocals": true,
|
|
"sourceMap": false,
|
|
"outDir": "./lib",
|
|
"declaration": true,
|
|
"jsx": "react",
|
|
"lib": ["es2022", "es2024.promise", "dom", "dom.iterable"],
|
|
"strict": true,
|
|
"types": ["node", "modernizr"],
|
|
"paths": {
|
|
"jest-matrix-react": ["./test/test-utils/jest-matrix-react"],
|
|
"test-utils-rtl": ["./test/test-utils/jest-matrix-react"],
|
|
"jest-mock-vitest-adapter": ["./test/setup/adapter.ts"]
|
|
}
|
|
},
|
|
"include": [
|
|
"./node_modules/matrix-js-sdk/src/@types/*.d.ts",
|
|
"./src/**/*.ts",
|
|
"./src/**/*.tsx",
|
|
"./test/**/*.ts",
|
|
"./test/**/*.tsx",
|
|
"./scripts/*.ts",
|
|
"./@types/*.d.ts",
|
|
"./webpack.config.ts"
|
|
]
|
|
}
|