-
-
Notifications
You must be signed in to change notification settings - Fork 835
bug: Cannot find module '@stencil/core/testing/jest-preset' after upgrading to Stencil 4.19.2 #5896
Copy link
Copy link
Closed
AnirudhJalagam/ionic-frameworkss
#2Labels
Bug: ValidatedThis PR or Issue is verified to be a bug within StencilThis PR or Issue is verified to be a bug within Stencil
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Stencil Version
4.19.2
Current Behavior
This error occurs when trying to import moduleNameMapper from @stencil/core/testing/jest-preset in the Stencil configuration file:
import { moduleNameMapper } from '@stencil/core/testing/jest-preset';
### Expected Behavior
Should work as it did in previous versions, allowing the use of `moduleNameMapper` from `@stencil/core/testing/jest-preset`.
### System Info
```shell
Node 20.11.1
PNPM 9.3.0
CPU Model: Apple M3
Stencil: 4.19.2Steps to Reproduce
- Upgrade @stencil/core to version 4.19.2
- Attempt imports
moduleNameMapperfrom @stencil/core/testing/jest-preset - Observe the mentioned error
Code Reproduction URL
n/a
Additional Information
Error: Cannot find module
@tc/stencil-library:build: '/Users/xxxx/Documents/work/cars/node_modules/@stencil/core/testing/jest-preset' at
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Bug: ValidatedThis PR or Issue is verified to be a bug within StencilThis PR or Issue is verified to be a bug within Stencil