Skip to content
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

No tests found when directory name has [] (Component Testing with Next.js) #24588

Closed
levaleks opened this issue Nov 8, 2022 · 4 comments · Fixed by #25299
Closed

No tests found when directory name has [] (Component Testing with Next.js) #24588

levaleks opened this issue Nov 8, 2022 · 4 comments · Fixed by #25299
Assignees

Comments

@levaleks
Copy link

levaleks commented Nov 8, 2022

Current behavior

Hello, I encountered a similar issue previously reported here #20573
Running tests inside a square-bracket folder lead to a "No tests found." error.
Screenshot 2022-11-08 at 16 28 23

Desired behavior

Tests inside square-bracket folders work in a usual way.

Test code to reproduce

Just wrap a folder name containing component tests in [].

Cypress Version

10.11.0 and 11.0.1

Node version

16.15.0

Operating System

macOS 12.6

Debug Logs

No response

Other

Next – 12.3.0
dev server framework – 'next'
dev server bundler – 'webpack'

@levaleks
Copy link
Author

Update – the problem reproduces for Cypress 11 as well :(

@marktnoonan
Copy link
Contributor

.Thanks @levaleks, I was able to reproduce, routed to CT team.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Dec 29, 2022

The code for this is done in cypress-io/cypress#25299, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot cypress-bot bot removed the stage: needs review The PR code is done & tested, needs review label Dec 29, 2022
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jan 3, 2023

Released in 12.3.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v12.3.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Jan 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants