Skip to content

bug: Broken exports for testing #5871

Closed
Closed

Description

@Tallyb

Prerequisites

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: a2fa93b
Partial fix was only for mockDoc imports. #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

Activity

  1. added
    Bug: Validated
    and removed on Jun 28, 2024
  2. christian-bromann commented on Jun 28, 2024

    @christian-bromann
    Member

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Bug: Validated

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions