Skip to content

Cypress component testing(react/angular) vs karma/jasmine vs jest #17239

Discussion options

You must be logged in to vote

Read my vision for component testing here https://glebbahmutov.com/blog/my-vision-for-component-tests/

In my opinion, component testing in a real browser using Cypress are 10x better than writing tests in karma/jasmine and jest

  1. real browser compared to jest, much easier debugging experience
  2. same speed as jest. Only the initial Cypress startup time is longer
  3. use any plugin like visual testing, reporter, etc is available
  4. network stubbing and mocking using cy.intercept command

I don't think you need to rewrite the tests, but I would try writing a few component tests and see what you think

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@BrkCoder
Comment options

@saivishnutammineni
Comment options

Answer selected by BrkCoder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants