mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-04 08:27:33 +03:00
docs(best-practises): add note about tsc (#32245)
This commit is contained in:
parent
b66cb6caaa
commit
6512bccffd
@ -265,7 +265,7 @@ Use Linux when running your tests on CI as it is cheaper. Developers can use wha
|
||||
|
||||
### Lint your tests
|
||||
|
||||
Linting the tests helps catching errors early. Use [`@typescript-eslint/no-floating-promises`](https://typescript-eslint.io/rules/no-floating-promises/) [ESLint](https://eslint.org) rule to make sure there are no missing awaits before the asynchronous calls to the Playwright API.
|
||||
We recommend TypeScript and linting with ESLint for your tests to catch errors early. Use [`@typescript-eslint/no-floating-promises`](https://typescript-eslint.io/rules/no-floating-promises/) [ESLint](https://eslint.org) rule to make sure there are no missing awaits before the asynchronous calls to the Playwright API. On your CI you can run `tsc --noEmit` to ensure that functions are called with the right signature.
|
||||
|
||||
### Use parallelism and sharding
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user