-
Notifications
You must be signed in to change notification settings - Fork 468
Closed
Labels
Description
Node 12.18.4 and @testing-library/dom 7.26.1, pinning to a lower version of @testing-library/dom solved the issue for me. I believe this was the call site.
Require was triggered by Cypress not sure if this has anything to do with it though.
Oops...we found an error preparing this test file:
support/index.js
The error was:
Error: Webpack Compilation Error
/Users/albert.still/Documents/GitHub/fe-server-search-listings/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js
Module not found: Error: Can't resolve './helpers' in '/Users/albert.still/Documents/GitHub/fe-server-search-listings/node_modules/@testing-library/dom/dist/@testing-library'
Looked for and couldn't find the file at the following paths:
[/Users/albert.still/Documents/GitHub/fe-server-search-listings/node_modules/@testing-library/dom/dist/@testing-library/helpers]
[/Users/albert.still/Documents/GitHub/fe-server-search-listings/node_modules/@testing-library/dom/dist/@testing-library/helpers.js]
[/Users/albert.still/Documents/GitHub/fe-server-search-listings/node_modules/@testing-library/dom/dist/@testing-library/helpers.json]
[/Users/albert.still/Documents/GitHub/fe-server-search-listings/node_modules/@testing-library/dom/dist/@testing-library/helpers.jsx]
[/Users/albert.still/Documents/GitHub/fe-server-search-listings/node_modules/@testing-library/dom/dist/@testing-library/helpers.mjs]
[/Users/albert.still/Documents/GitHub/fe-server-search-listings/node_modules/@testing-library/dom/dist/@testing-library/helpers.coffee]
[/Users/albert.still/Documents/GitHub/fe-server-search-listings/node_modules/@testing-library/dom/dist/@testing-library/helpers.ts]
[/Users/albert.still/Documents/GitHub/fe-server-search-listings/node_modules/@testing-library/dom/dist/@testing-library/helpers.tsx]
@ /Users/albert.still/Documents/GitHub/fe-server-search-listings/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js 387:15-35
@ /Users/albert.still/Documents/GitHub/fe-server-search-listings/node_modules/@testing-library/cypress/dist/index.js
@ /Users/albert.still/Documents/GitHub/fe-server-search-listings/node_modules/@testing-library/cypress/dist/add-commands.js
@ /Users/albert.still/Documents/GitHub/fe-server-search-listings/node_modules/@testing-library/cypress/add-commands.js
@ ./support/index.js
This occurred while Cypress was compiling and bundling your test code. This is usually caused by:
- A missing file or dependency
- A syntax error in the file or one of its dependencies
Fix the error in your code and re-run your tests.
datdoan, johncalvinroberts and letsrokk