mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Enable ESLint for all end-to-end tests GitOrigin-RevId: 5d085f52fabcc794b0457edbbb551500477d4110
9 lines
221 B
TypeScript
9 lines
221 B
TypeScript
export function beforeWithReRunOnTestRetry(fn: () => void | Promise<any>) {
|
|
let ranOnce = false
|
|
beforeEach(function () {
|
|
if (ranOnce && Cypress.currentRetry === 0) return
|
|
ranOnce = true
|
|
return fn()
|
|
})
|
|
}
|