stencil
stencil copied to clipboard
bug: Broken exports for testing
Prerequisites
- [X] I have read the Contributing Guidelines.
- [X] I agree to follow the Code of Conduct.
- [X] I have searched for existing issues that already report this problem, without success.
Stencil Version
4.19.0
Current Behavior
Using in jest config file the following:
preset: @stencil/core/testing
transform: @stencil/core/testing/jest-preprocessor
Worked ok until 4.18.2 currently getting error:
Preset @stencil/core/testing not found.
Configuration Documentation:
https://jestjs.io/docs/configuration
Expected Behavior
work as before quite likely as a result of this: https://github.com/ionic-team/stencil/commit/a2fa93b504d2ff2a3a3534ed5489af977552a273 Partial fix was only for mockDoc imports. https://github.com/ionic-team/stencil/issues/5860
System Info
node 20.
npm 10.7
Steps to Reproduce
build a simple jest config with preset @stencil/core/testing Try to run jest.
Code Reproduction URL
n/a
Additional Information
No response
@Tallyb thanks so much for reporting the bug and apologize for the regression. I have raised a PR with a bug fix. We were not aware that this was a use case for Stencil users. Moving on we have tests for this in place to ensure it won't break again.