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
chore(tools): control Cypress installation #38660
chore(tools): control Cypress installation #38660
Conversation
Contributors will not need to install Cypress unless they are working on e2e tests. With these changes it will only install when npm run cypress is invoked.
|
@raisedadead if we want to stop crash reports going to Cypress, we can, but it'll need to use |
Won't that be the case only where we have the CI env configured with the keys? Everywhere else it will just fail? Which is fine. Or I am missing something. |
|
Sounds like they get error reports when Cypress itself crashes, so I think it'll send them regardless of keys, but I'm not sure. The docs are here if you want to take a look. |
|
A quick look tells me this is mostly for analytics for their product? IDK to be honest, lets give this a go as is, unless you have any more changes to the PR. |
|
I think so, too. And, yes, I'm happy with the PR. |
It's oddly difficult to configure
npm install.npm set configis lower priority than.npmrcand it only takes effect the next time you usenpm install. As a result you can't usepreinstallto disable the installation and you can't overwrite config set in.npmrcvianpm config.However, environment variables that are passed to the process supersede
.npmrc, which is why I went with spawn a new process with the desired variable.Closes #38636