use ts cypress reset

This commit is contained in:
Yisroel Baum 2026-06-02 09:47:48 +03:00
parent 757f149dea
commit 4af28412a0
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
8 changed files with 310 additions and 40 deletions

View file

@ -0,0 +1,16 @@
/// <reference types="cypress" />
/* eslint-disable @typescript-eslint/no-namespace */
declare global {
namespace Cypress {
interface Chainable {
resetDb(): Chainable<null>
}
}
}
Cypress.Commands.add('resetDb', function () {
return cy.task<null>('db:reset')
})
export {}