File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 11# Prevent using async/await in Cypress test cases (no-async-tests)
22
3- Cypress commands that return a promise may cause side effects in before/beforeEach hooks, possibly causing unexpected behavior.
3+ Cypress commands that return a promise may cause side effects in before/beforeEach hooks, possibly causing unexpected behavior.
44
55## Rule Details
66
@@ -47,6 +47,5 @@ If there are genuine use-cases for using `async/await` in your before then you m
4747
4848## Further Reading
4949
50- - [ Commands Are Asynchronous] ( https://docs.cypress.io/guides/core-concepts/introduction-to-cypress.html#Commands-Are-Asynchronous )
51- - [ Commands Are Promises] ( https://docs.cypress.io/guides/core-concepts/introduction-to-cypress.html#Commands-Are-Promises )
52- - [ Commands Are Not Promises] ( https://docs.cypress.io/guides/core-concepts/introduction-to-cypress.html#Commands-Are-Not-Promises )
50+ - [ Mixing Async and Sync code] ( https://on.cypress.io/guides/core-concepts/introduction-to-cypress#Mixing-Async-and-Sync-code )
51+ - [ Commands Are Asynchronous] ( https://on.cypress.io/guides/core-concepts/introduction-to-cypress.html#Commands-Are-Asynchronous )
Original file line number Diff line number Diff line change @@ -47,6 +47,5 @@ If there are genuine use-cases for using `async/await` in your test cases then y
4747
4848## Further Reading
4949
50- - [ Commands Are Asynchronous] ( https://docs.cypress.io/guides/core-concepts/introduction-to-cypress.html#Commands-Are-Asynchronous )
51- - [ Commands Are Promises] ( https://docs.cypress.io/guides/core-concepts/introduction-to-cypress.html#Commands-Are-Promises )
52- - [ Commands Are Not Promises] ( https://docs.cypress.io/guides/core-concepts/introduction-to-cypress.html#Commands-Are-Not-Promises )
50+ - [ Mixing Async and Sync code] ( https://on.cypress.io/guides/core-concepts/introduction-to-cypress#Mixing-Async-and-Sync-code )
51+ - [ Commands Are Asynchronous] ( https://on.cypress.io/guides/core-concepts/introduction-to-cypress.html#Commands-Are-Asynchronous )
You can’t perform that action at this time.
0 commit comments