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

Add as part of FAQ: 'how do I require a library with fs access' #714

Closed
brian-mann opened this issue Jun 16, 2018 · 1 comment
Closed

Add as part of FAQ: 'how do I require a library with fs access' #714

brian-mann opened this issue Jun 16, 2018 · 1 comment
Assignees

Comments

@brian-mann
Copy link
Member

We commonly see users try to do this: cypress-io/cypress#1963

They want to require an npm lib that has fs access in it. They can't do that, but it's easy to simply use cy.task or something else in order to access the background node process.

Need to make it clear / findable / searchable to do this.

@gelicia
Copy link

gelicia commented Jul 9, 2018

I found this issue (and related) trying to figure out why cypress was finding my plugins file as a spec, and then failing on the fs-extra command using the code here to give myself multiple config files. I later found out that my main problem was my pluginsFile was in a folder nested inside my integration folder. This also keeps ignoreTestFiles from working. Anyway, this is only tangentially related but if you're updating docs there might be a spot for "be sure the plugins folder is a sibling of your integrationFolder."

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

No branches or pull requests

3 participants