What are the types of assertions and how to use them in Cypress?

What are the types of assertions and how to use them in Cypress?

Hello Alex-walker,

There are negative and positive assertions in Cypress.

Positive Assertions
cy.get('li.todo').should('have.length', 3)
Negative Assertions
cy.get('li.todo').should('not.have.length', 2)