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

CT: cypress doesn't recognize "+" symbol in the path to the component #5772

Open
1 of 6 tasks
bobige opened this issue Mar 27, 2024 · 0 comments
Open
1 of 6 tasks

CT: cypress doesn't recognize "+" symbol in the path to the component #5772

bobige opened this issue Mar 27, 2024 · 0 comments

Comments

@bobige
Copy link

bobige commented Mar 27, 2024

Description

Importing an angular component into a test file, when the component folder name starts with a "+" symbol, is not possible.

URL of Issue(s)

https://docs.cypress.io/guides/references/error-messages#No-tests-found

Steps to replicate

  1. Create a new Angular 15 project.
  2. Create a component in a folder that has the "+" sign in front of it
  3. Create a basic test file for the component and just mount it.
  4. See error

Browser

Google Chrome 119

Device

  • PC
  • Mac
  • iPhone
  • iPad
  • Android Phone
  • Android Tablet

Additional Information

I am configuring Cypress to test Angular 15 components. We have a naming convention to put the "+" sign in front of the folder name, containing the component files. When I mount the component, cypress gives a "No tests found" error, which according to the documentation could be caused by a syntax error.

It is easily reproduceable. Create a new Angular 15 project and create a component in a folder that has the "+" sign in front of it:

image

If I remove the "+" sign or even change the naming to have a different special character, such as "_", it works:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants