-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Must restart Cypress to run newly added spec file when using Webpack 5 #16664
Comments
After much investigation I am fairly sure the problem is this line is not doing what it does with Webpack 4. I don't know how to fix it yet, though, or what changed - this is not even a documented part of Webpack. |
The code for this is done in cypress-io/cypress#17950, but has yet to be released. |
#17950 fixes it! |
This was released as @cypress/webpack-dev-server v1.8.1 on Feb 10, 2022 |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
If you add a new spec file after starting the component testing runner, eg
touch src/MySpec.spec.jsx
, it shows up in the runner, but it always says "no test found", even if you add some tests to the spec file.You need to restart the runner to webpack to start watching the file correctly.
It only happens for projects using Webpack 5.
Desired behavior
Should work like it does for Webpack 4. I don't want to restart the runner.
Test code to reproduce
yarn cypress open-ct
touch src/Blah.spec.jsx
Blah.spec.jsx
in the side barit('something', () => {})
Versions
The text was updated successfully, but these errors were encountered: