chore: update type testing setup (#2139)

* chore: update type testing setup
* stricter TSConfig
* deduplicate type checking
This commit is contained in:
Tom Mrazauskas
2026-03-23 00:32:32 +02:00
committed by GitHub
parent 800c3db6b2
commit b10cec2322
3 changed files with 5 additions and 11 deletions
+1 -1
View File
@@ -42,7 +42,7 @@
"lint": "npm run lint:oxlint && npm run lint:format && npm run lint:types && npm run lint:compat",
"lint:oxlint": "oxlint --max-warnings 0 .",
"lint:format": "oxfmt --check .",
"lint:types": "tsc --noEmit --project types && tstyche",
"lint:types": "tstyche",
"lint:compat": "eslint",
"test": "npm run build && vitest run --project node --project tasks --project rspack --coverage",
"test:browser": "vitest run --project browser",
-4
View File
@@ -1,4 +0,0 @@
{
"testFileMatch": ["types/__typetests__/**/*.tst.ts"],
"tsconfig": "./types/tsconfig.json"
}
+4 -6
View File
@@ -2,16 +2,14 @@
"compilerOptions": {
"module": "commonjs",
"lib": ["es6"],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"exactOptionalPropertyTypes": true,
"noUncheckedIndexedAccess": true,
"strict": true,
"noEmit": true,
"baseUrl": ".",
"types": [],
"paths": {
"handlebars": ["."]
"handlebars": ["../"]
}
}
}