GithubHelp home page GithubHelp logo

Comments (4)

ganesh-gsk avatar ganesh-gsk commented on August 25, 2024

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.

iwt-ttaskov avatar iwt-ttaskov commented on August 25, 2024

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.

iwt-ttaskov avatar iwt-ttaskov commented on August 25, 2024

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.

iwt-ttaskov avatar iwt-ttaskov commented on August 25, 2024

I will close this ticket.

from browserstack-cypress-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.