You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run vitest on a button.test.jsx file, i get this error:
Error: require() of ES Module .../node_modules/dom-accessibility-api/dist/index.mjs not supported.
Instead change the require of .../node_modules/dom-accessibility-api/dist/index.mjs to a dynamic import() which is available in all CommonJS modules.
❯ Object.<anonymous> node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/suggestions.js:7:28
Any suggestions? Is it a bug in dom-accessibility-api?
The text was updated successfully, but these errors were encountered:
Seems like Vitest is using the module entrypoint instead of the main entrypoint. People are using this library in Vitest already as far as I know. I'd file this against Vitest first to check if there's a config issue or library issue.
Please link the created Vitest issue so that we can track progress.
When I run vitest on a button.test.jsx file, i get this error:
Any suggestions? Is it a bug in dom-accessibility-api?
The text was updated successfully, but these errors were encountered: