Comments (4)
Hi @iwt-ttaskov,
As per your concern, 'all files of my project are deleted', I am not able to see deletion mentioned anywhere in the logs, but the error that you are getting in the logs points to the below -
A missing file or dependency
A syntax error in the file or one of its dependencies
So, could you please check if you are adding all the dependencies correctly as shown in this document - https://www.browserstack.com/docs/automate/cypress/npm-packages
Also, is the same test working fine on your own local machine?
After checking the above things, if the issue still persists, please raise a ticket using this page https://www.browserstack.com/contact so that our team can debug more on it.
from browserstack-cypress-cli.
Hi @ganesh-gsk ,
Thank you for your reply :)
I forgot to mention that I am trying the browserstack test observabilty for cypress and not the running cypress tests on browserstack. So I am trying this https://www.browserstack.com/docs/test-observability/quick-start/cypress#Tests_running_locally_or_elsewhere and not this https://www.browserstack.com/docs/automate/cypress
I am alo trying to run the tests on my local machine and after a test run the results should be sent to browserstack test observability dashboard. Hence, I do not need to add the dependencies to the browserstack.json.
By the way, I created another simple cypress project with tests written in javascript and the test observability works as expected :)
Unfortunately, the other project that I have is a typescript project with cypress tests written in typescript and the log above is from that typescript project. You cannot see it from the logs but I can assure you that when I start the run then all files of my project are removed and therefore we get the error `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`. This is because the files were deleted by the run and cypress cannot find the spec files and support file.
But as it works in my simple cypress javascript project, I would like to ask if browserstack-cypress-cli supports only javascript? Or it also supports typescript? Maybe the Webpack is causing the deletion of the files?
Thank you in advance :)
from browserstack-cypress-cli.
FYI:
I transpiled the cypress specs written in typescript into javascript specs and now the tests run and the files are no more deleted from my project.
So as assumed, it is the webpack that causes the issues.
Can you please add a proper support in the browserstack-cypress-cli for typescript?
from browserstack-cypress-cli.
I will close this ticket.
from browserstack-cypress-cli.
Related Issues (20)
- Firefox not running on latest for windows 10 HOT 3
- Cypress no longer supports cypress.json HOT 5
- 1.18.0 contains breaking changes HOT 5
- 1.18.0 version - support for running tagged scenarios supported in Cypress 10
- 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
- Dependancy is getting installed as a devDependancy? HOT 4
- 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
- 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
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.