mirror of
https://github.com/cpvalente/ontime.git
synced 2026-07-26 02:28:53 +00:00
tooling: lax typechecking in tests
This commit is contained in:
committed by
Carlos Valente
parent
6beda1575a
commit
242cefd35c
@@ -9,8 +9,7 @@
|
||||
],
|
||||
"types": [
|
||||
"vite/client",
|
||||
"vite-plugin-svgr/client",
|
||||
"vitest/globals"
|
||||
"vite-plugin-svgr/client"
|
||||
],
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
@@ -31,5 +30,14 @@
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"build",
|
||||
"src/**/*.test.ts",
|
||||
"src/**/*.test.tsx",
|
||||
"src/**/*.spec.ts",
|
||||
"src/**/*.spec.tsx",
|
||||
],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.tests.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"extends": "../../tsconfig.tests.json",
|
||||
"compilerOptions": {
|
||||
"target": "esnext",
|
||||
"lib": [
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
"esnext"
|
||||
],
|
||||
"types": [
|
||||
"vite/client",
|
||||
"vite-plugin-svgr/client",
|
||||
"vitest/globals"
|
||||
],
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"allowUnusedLabels": false,
|
||||
"removeComments": true,
|
||||
"preserveConstEnums": true,
|
||||
"allowJs": true,
|
||||
"baseUrl": "src",
|
||||
"jsx": "react-jsx",
|
||||
"outDir": "build",
|
||||
"composite": true
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.test.ts",
|
||||
"src/**/*.test.tsx",
|
||||
"src/**/*.spec.ts",
|
||||
"src/**/*.spec.tsx",
|
||||
],
|
||||
"typeRoots": [
|
||||
"./src/declarations/**"
|
||||
]
|
||||
}
|
||||
@@ -18,5 +18,12 @@
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"src/**/*.test.ts",
|
||||
"src/**/*.spec.ts",
|
||||
],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.tests.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"extends": "../../tsconfig.tests.json",
|
||||
"compilerOptions": {
|
||||
"target": "esnext",
|
||||
"module": "preserve",
|
||||
"moduleResolution": "bundler",
|
||||
"allowUnusedLabels": false,
|
||||
"removeComments": true,
|
||||
"preserveConstEnums": true,
|
||||
"allowJs": true,
|
||||
"declaration": true,
|
||||
"outDir": "dist",
|
||||
"sourceMap": true,
|
||||
"baseUrl": "src",
|
||||
"composite": true
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.test.ts",
|
||||
"src/**/*.spec.ts",
|
||||
]
|
||||
}
|
||||
@@ -7,7 +7,6 @@
|
||||
"noImplicitReturns": false, //TODO: fix this
|
||||
"allowJs": true,
|
||||
"esModuleInterop": true,
|
||||
"types": ["vitest/globals"],
|
||||
"outDir": "dist",
|
||||
"experimentalDecorators": true,
|
||||
},
|
||||
@@ -15,4 +14,13 @@
|
||||
"src/**/*.ts",
|
||||
"src/**/*.js",
|
||||
],
|
||||
"exclude": [
|
||||
"src/**/*.test.ts",
|
||||
"src/**/*.spec.ts",
|
||||
],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.tests.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"extends": "../../tsconfig.tests.json",
|
||||
"compilerOptions": {
|
||||
"target": "esnext",
|
||||
"module": "node16",
|
||||
"moduleResolution": "node16",
|
||||
"allowJs": true,
|
||||
"esModuleInterop": true,
|
||||
"types": ["vitest/globals"],
|
||||
"outDir": "dist",
|
||||
"experimentalDecorators": true,
|
||||
"composite": true
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.test.ts",
|
||||
"src/**/*.spec.ts",
|
||||
]
|
||||
}
|
||||
@@ -8,14 +8,19 @@
|
||||
"removeComments": true,
|
||||
"preserveConstEnums": true,
|
||||
"allowJs": true,
|
||||
"baseUrl": "src",
|
||||
"types": ["vitest/globals"]
|
||||
"baseUrl": "src"
|
||||
},
|
||||
"include": [
|
||||
"src",
|
||||
"../node_modules/.pnpm/vitest@0.26.3/node_modules/vitest/globals.d.ts"
|
||||
"src"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"src/**/*.test.ts",
|
||||
"src/**/*.spec.ts",
|
||||
],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.tests.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"extends": "../../tsconfig.tests.json",
|
||||
"compilerOptions": {
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"allowUnusedLabels": false,
|
||||
"removeComments": true,
|
||||
"preserveConstEnums": true,
|
||||
"allowJs": true,
|
||||
"baseUrl": "src",
|
||||
"types": ["vitest/globals"],
|
||||
"composite": true
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.test.ts",
|
||||
"src/**/*.spec.ts",
|
||||
]
|
||||
}
|
||||
@@ -11,6 +11,7 @@
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"allowUnreachableCode": false
|
||||
"allowUnreachableCode": false,
|
||||
"noUncheckedIndexedAccess": false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"compilerOptions": {
|
||||
"strict": true,
|
||||
"skipLibCheck": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"resolveJsonModule": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"isolatedModules": true,
|
||||
"noImplicitReturns": false,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
"allowUnreachableCode": false,
|
||||
"noUncheckedIndexedAccess": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user