Search code examples
typescriptassertionsbrowser-automationcypress

Cypress.io + TypeScript difference beetween: expect().to.equal() vs expect().equals() vs expect().to.eq()


What is the difference if we compare these 3 assertion methods:

expect().to.equal() vs expect().equals() vs expect().to.eq()

I found these assertions in Cypress.io documentation: https://docs.cypress.io/guides/references/assertions.html#BDD-Assertions


Solution

  • Based on the source, the effects of all of these are identical under the hood.