-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JEST stopped working with version 2.3.0 #222
Comments
Since From my insights it seems that two different polyfills/packages/custom-elements/src/CustomElementRegistry.js Lines 168 to 173 in 75717f8
Reproduction Repo with relevant analysis in PR description: Lock down to |
Hey! Any progress with this issue? |
If you are using |
If you don't actually need the customElements to return an actual element and you're only aiming to avoid this error, you can can mock the implementation. Create a config file for jest that will be included in all tests as part of a setupFiles option. setup-globals.js
window.customElements = {
define: () => {},
}; // jest.config.js
....
setupFiles: [
'<rootDir>/YOUR-PATH/setup-globals.js',
], |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
axa-ch-webhub-cloud/pattern-library#1452
axa-ch/jest-test-plib-v2#2
The text was updated successfully, but these errors were encountered: