https://cypress.io logo
Hey all. Did anyone get component testing to work ...
# help
a
Hey all. Did anyone get component testing to work with a Webpack config from Craco?
Copy code
ts
export const webpackConfig = createWebpackDevConfig(cracoConfig);
Craco gives you API for extracting the overridden Webpack config, but Cypress throws with the following:
Copy code
ts
Error: Cannot find module '/Users/adisahar/dev/deepdubapp8/cypress/package.json'
Require stack:
- /Users/xxx/dev/deepdubapp8/node_modules/react-scripts/config/paths.js
- /Users/xxx/dev/deepdubapp8/node_modules/react-scripts/config/env.js
- /Users/xxx/dev/deepdubapp8/node_modules/@craco/craco/lib/cra.js
- /Users/xxx/dev/deepdubapp8/node_modules/@craco/craco/lib/features/jest/api.js
- /Users/xxx/dev/deepdubapp8/node_modules/@craco/craco/index.js
- /Users/xxx/dev/deepdubapp8/craco.config.ts
- /Users/xxx/dev/deepdubapp8/cypress/cypress.config.ts
...