Skip to content

custom-elements break jest #786

@jan-capiak

Description

@jan-capiak
  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

Are you reporting a bug or a feature?

  • Bug
  • Feature

Problem

Testing custom elements (patterns-library components) with jest throws an error.
The problem is that jsdom doesnt support custom elements.
Github issue on jsdom: jsdom/jsdom#1030

What is then the way to test your application with patterns-library components?
Thanks

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions