Comments (4)
Hey there,
Please install the packages and configure the dependencies and dev dependencies separately.
"dependencies": { "chai": "^4.5.8", }, "devDependencies": { "@wdio/mocha-framework": "^7.5.0" }
This should resolve the issue.
from browserstack-cypress-cli.
Thanks for the quick response.
In the package.json, we are specifying it like that. So it looks like (example):
dependancies: {
"node-fetch": "^x.x.xx",
...
}
and in my browserstack.json it has:
"npm_dependencies": {
"node-fetch": "^x.x.xx",
}
But it still gets uploaded to browserstack through the cli as a devDependancy? As the test in the Browserstack says it cant find the module.
from browserstack-cypress-cli.
https://github.com/browserstack/browserstack-cypress-cli/blob/425f260bc3b27555d44f9c3c82cf7c476b8123c1/bin/helpers/packageInstaller.js#LL33C11-L33C11 on this line I can see that it simply assumes all dependancies specified in npm_dependancies
should be devDependancies.
This is incorrect I would say, and should be up to the consumer to decide on if we require dependancies or devdependancies?
from browserstack-cypress-cli.
Closing this issue, as we have managed to get this working in our project. Whether or not publically this will be resolved I don't know, but whilst working with Browserstack we have got this working for dependancies to be installed correctly.
from browserstack-cypress-cli.
Related Issues (20)
- 1.18.0 - Cypress config file not accepting cypress.config.ts HOT 2
- Cypress 10 config file imports not working HOT 1
- Cannot find module 'cypress', Cypress v10, cypress.config.js HOT 3
- Recursion creating tests.zip when home_directory is defined
- Error and warning when using `init` command HOT 3
- `got` security vulnerability
- Peer dependency missing for mocha reporters but cannot install Mocha
- Use alternative for request package HOT 4
- add support for Cypress component testing
- Message stating: "Sorry, you have been blocked" on any version after 1.23.1 HOT 1
- When a run is started then all files in the project are removed HOT 4
- Local testing fails when testObservability added to e2e.js
- npm ERR! 503 on browserstack side HOT 4
- geoLocation feature states it doesn't work with browserstack local , when browserstack local is not being used.
- browserstack local is set to null but local testing through BrowserStack is not connected HOT 8
- The test suite of different tests can interfere with each other, causing accidental deletion.
- Support getting DEBUG logs from cypress HOT 1
- Support Test Replay for Cypress Cloud with 'record: true' HOT 2
- ESM issues HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from browserstack-cypress-cli.