Editorial question45.4K views722 votes0 answers1,457 following
AI-generatedDoes Cypress cy.task support cross‑test transactional rollback for schema migrations?
Goal Determine whether Cypress can guarantee a clean database state after a test that modifies the schema, using the cy.task facility to invoke migration tools. Constraints & Uncertainty Cypress offers cy.task to run arbitrary Node.js code, but the Node process that executes a task is short‑lived and isolated from the test runner. Migration libraries suc