describe('Calculator', function () {
it('should subtract correctly', function () {
const calculator = new Calculator();
const result = calculator.subtract(20, 5);
expect(result).toBe(15);
});
});
example: cypress.io 👉🏼