fix(tsconfig): set ES2022 target for jest typechecking

resolve-check-config and setup-install set `types: ["jest"]`, which
excludes @types/node and the lib references it pulls in. With no explicit
`target`, ts-jest typechecks against the default ES5 lib, so modern
globals like `Object.entries` fail to resolve (TS2550) and the
resolve-check-config suite fails to compile.
This commit is contained in:
Damien Retzinger
2026-06-09 17:28:40 -04:00
parent a097371e37
commit 7f6945e30b
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
"resolveJsonModule": true,
"esModuleInterop": true,
"typeRoots": ["../node_modules/@types"],
"types": ["jest"]
"types": ["jest"],
"target": "ES2022"
}
}