Cypress for Components Tests React configuration problem absolute path #20674
-
Hi Guys! ProblemThe project is already ready and I have absolute folders configuration, when I import a component from "~ /components" I am accessing 'src/components', I am not able to make the proper settings to be able to access the absolute folders because when I run the cypress open script -ct doesn't seem to run 'file:preprocessor', where you need to run it to run the webpack where you have the absolute folder settings. AttemptsI tried the tsconfig.json files configuration solution but I couldn't make it work because I use it in the jsconfig.json project, I tried to use tsconfig.json I used the 'tsconfig-paths' package and got no result. cypress/plugins/index.js
cypress.json
webpackconfig.js
packjage.json
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello Guys again, plugins/index.js
cypress.json
webpack.config.js
|
Beta Was this translation helpful? Give feedback.
Hello Guys again,
I managed to do the following solution:
plugins/index.js
cypress.json
webpack.config.js