question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fileServerFolder option is being used incorrectly

See original GitHub issue

First off, I would like to show my appreciation for this project, it’s something that I’ve been looking for for a while now, and I’m glad you open sourced it!

The issue is that the fileServerFolder option is being used incorrectly to look for step definitions, when it actual use case is to allow cypress to start a local http static assets folder from this path.

I’ve created a PR here #17

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
dvelasquezcommented, Mar 4, 2018

@lgandecki sure, the default path of installation of cypress is in the root of the project, but for me, that default doesn’t match my current scaffolding. This is directory structure:

/src <-- Source files (vuejs)
/tests <-- Test root folder
/tests/unit <-- units tests
/tests/e2e <-- Cypress content goes here

So, in my case, i don’t want to keep a cypress folder polluting the root of the project. But, this plugin has the directory /cypress/support/ hardcoded, so, what i try was just to make this module to be aware of the custom directory cypress folder.

But, if we can add to cypress.json a specific value to our step_definition folder, that should be great.

Another way is adding a custom config to the package.json file adding the route of our step definition files.

2reactions
lgandeckicommented, Mar 9, 2018

quick update - if the cypress guy don’t reply by the middle of next week I will implement it in cypress.json with the syntax proposed by @reaktivo

Read more comments on GitHub >

github_iconTop Results From Across the Web

fileServerFolder option is being used incorrectly #16 - GitHub
The issue is that the fileServerFolder option is being used incorrectly to look for step definitions, when it actual use case is to...
Read more >
Configuration - Cypress Documentation
This file is used to store any configuration specific to Cypress. ... Configuration might include experimental options currently being tested.
Read more >
Powershell Restore going to wrong drive letter - TechNet - Microsoft
When it goes to restore filesystem data the restoration path chooses the wrong drive letter. However, when I use the same script to...
Read more >
Configurations in Cypress and How to Disable Default ...
How to use a customized file as a configuration file in Cypress? Now we have seen multiple options to override different configurations. However ......
Read more >
cypress-io/cypress - Gitter
node_modules/.bin/cypress open is to use just cypress.json . ... but I've been asked to set using cypress.json after running Cypress without --env parameter ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found