How to increase default timeout for SQL request sent from Cypress test?

69 views Asked by At

I use cypress-sql-server plugin for sending SQL requests from Cypress tests. It works fine if the Data processed by the request is not large. But for big amounts of data the request fails by timeout which is 60 secs by default. cypress-sql-server npm package doesn't provide any information about timeout settings. How can I implement custom timeout e.g. something like this:

cy.sqlServer(query, { timeout: 90000 }).then(($data) => {
  console.log($data)
})
1

There are 1 answers

2
Noname NoSurname On

https://docs.cypress.io/guides/references/configuration#Timeouts - here is all timeouts. Redefine the desired variable. This file will be cypress.config.js for JavaScript apps or cypress.config.ts for TypeScript apps.