Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(test): don't fail build when jest typings can't be resolved (#5031)
patch `getJestPreset` in the jest-stencil connector to return `any` instead of an inferred type for the function. prior to this fix, building a stencil project with jest 29 installed could lead to an error such as: ``` TypeScript: node_modules/@stencil/core/testing/jest/jest-stencil-connector.d.ts:81:31 Could not find a declaration file for module '@jest/types/build/Config'. '/PROJECT_DIRECTORY/node_modules/@jest/types/build/Config.js' implicitly has an 'any' type.If the '@jest/types' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@jest/types/build/Config';` ``` Explicitly setting this return type to `any` is a temporary measure to unblock adopters. A TODO for STENCIL-1003 has been added to resolve this fully. STENCIL-1002: bug: Stencil 4.7.x & Jest 29.5.7 TypeScript error fixes: #5030
- Loading branch information