mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-13 13:14:53 +00:00
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:
@@ -3,6 +3,7 @@
|
||||
"resolveJsonModule": true,
|
||||
"esModuleInterop": true,
|
||||
"typeRoots": ["../node_modules/@types"],
|
||||
"types": ["jest"]
|
||||
"types": ["jest"],
|
||||
"target": "ES2022"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user