Cypress Components - React & Webpack - missing configuration? #23014
Unanswered
Zarmakuizz
asked this question in
Component Testing
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I tried to reproduce my configuration in this repo: Cypress Webpack Alias.
Steps I followed:
The goal: I can call my project files using:
And, if I load my project files into a test, the path resolution works as well.
This is where I stumbled on two issues.
(disclaimer: I'm not talking about Typescript aliases, I'm not talking about query aliases.)
If I start the only Component test into a browser, the console throws this:
If I modify my Component test file and write this:
I get an error at the
mount
line that < is unrecognized token.For what I can see online, Component testing with React seems to work "out of the box", so I am quite confident that I missed an obvious configuration step. Any idea what fails?
Beta Was this translation helpful? Give feedback.
All reactions