Skip to content

bug: class extension breaks Jest unit tests #6400

@mpesic

Description

@mpesic

Prerequisites

Stencil Version

4.37.1

Current Behavior

Extending a component in 4.37.1 breaks Stencil unit tests (via newSpecPage) with ReferenceError: Super constructor may only be called once. This happens in Jest 29.

Expected Behavior

Jest unit tests should not be affected by class extensions.

System Info

Steps to Reproduce

@Component(...) 
class A extends B {

Code Reproduction URL

https://github.com/stenciljs/core

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions