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

file name contains character ”+“ not run #5909

Closed
mingyixu opened this issue Dec 7, 2019 · 6 comments · Fixed by #8015 · May be fixed by Omrisnyk/npm-lockfiles#145 or Omrisnyk/npm-lockfiles#164
Closed

file name contains character ”+“ not run #5909

mingyixu opened this issue Dec 7, 2019 · 6 comments · Fixed by #8015 · May be fixed by Omrisnyk/npm-lockfiles#145 or Omrisnyk/npm-lockfiles#164
Labels

Comments

@mingyixu
Copy link

mingyixu commented Dec 7, 2019

the file cy_web+_20191207220608.js is exsite, but run cypress,

Cannot find module web _20191207220608.js, this character ”+“  instead of " ", so not find the file.

Current behavior:

  │ Cypress:    3.7.0                                                                              │
  │ Browser:    Electron 73 (headless)                                                             │
  │ Specs:      1 found (web+_20191207220608/web+_20191207220608.js)                    │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  web+_20191207220608/web+_20191207220608.js                           (1 of 1)

Oops...we found an error preparing this test file:

  /home/admin/cypress/web _20191207220608/web _20191207220608.js

The error was:

Error: Cannot find module '/home/admin/cypress/web _20191207220608/web _20191207220608.js' from '/home/admin/cypress'

This occurred while Cypress was compiling and bundling your test code. This is usually caused by:

- A missing file or dependency
- A syntax error in the file or one of its dependencies

Fix the error in your code and re-run your tests.
@jennifer-shehane
Copy link
Member

Yes, confirmed. Specfiles with + character do not run in Cypress.

The error seems to print the filename with the + character replaced with a character.

My file was at cypress/integration/foo+bar.js

Screen Shot 2019-12-24 at 2 35 24 PM

@cypress-bot cypress-bot bot added the stage: ready for work The issue is reproducible and in scope label Dec 24, 2019
@emchoi7
Copy link

emchoi7 commented Jan 8, 2020

Could I take a look at this, if nobody else is already?

@jennifer-shehane
Copy link
Member

@emchoi7 Sure

@jennifer-shehane
Copy link
Member

Reopening as this is still an issue.

@jennifer-shehane
Copy link
Member

The code for this is done in cypress-io/cypress#8015, but has yet to be released.

We'll update this issue and reference the changelog when it's released.

@jennifer-shehane jennifer-shehane added stage: pending release and removed stage: ready for work The issue is reproducible and in scope labels Aug 3, 2020
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Aug 3, 2020

Released in 4.12.0.

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

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