top | item 28498565

(no title)

DerJacques | 4 years ago

Have you looked into Cypress (https://www.cypress.io/)? If I understand you correctly, it may actually do what you are describing here.

discuss

order

stepbeek|4 years ago

The combination of cypress and something like percy (https://percy.io/) has made me completely lose interest in testing components independently. The components that make up a UI are an implementation concern that I don't really care about testing independently.

I can write automated tests to verify that a component in a relevant context still functions, and can have a check at PR time to verify that the UI hasn't changed unexpectedly.

sktrdie|4 years ago

Yes cool but I want to be able to run the test in command line like I currently do with Jest where everything is mocked (even DOM) so it runs super fast (during CI) but then I also just wanna run the test in a browser for my development workflow.

Running all tests in Cypress would result in slow CIs.