docs(test-runner): afterEach JSDoc description typo (#9542)

This commit is contained in:
Paul Biggar 2021-10-16 06:36:07 -04:00 committed by GitHub
parent 18e690e234
commit e473fc6a10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -72,7 +72,7 @@ Hook function that takes one or two arguments: an object with fixtures and optio
## method: Test.afterEach
Declares an `afterEach` hook that is executed after each test. When called in the scope of a test file, runs before each test in the file. When called inside a [`method: Test.describe`] group, runs before each test in the group.
Declares an `afterEach` hook that is executed after each test. When called in the scope of a test file, runs after each test in the file. When called inside a [`method: Test.describe`] group, runs after each test in the group.
### param: Test.afterEach.hookFunction
- `hookFunction` <[function]\([Fixtures], [TestInfo]\)>

View file

@ -2173,9 +2173,9 @@ export interface TestType<TestArgs extends KeyValue, WorkerArgs extends KeyValue
*/
beforeEach(inner: (args: TestArgs & WorkerArgs, testInfo: TestInfo) => Promise<any> | any): void;
/**
* Declares an `afterEach` hook that is executed after each test. When called in the scope of a test file, runs before each
* Declares an `afterEach` hook that is executed after each test. When called in the scope of a test file, runs after each
* test in the file. When called inside a
* [test.describe(title, callback)](https://playwright.dev/docs/api/class-test#test-describe) group, runs before each test
* [test.describe(title, callback)](https://playwright.dev/docs/api/class-test#test-describe) group, runs after each test
* in the group.
* @param hookFunction Hook function that takes one or two arguments: an object with fixtures and optional [TestInfo].
*/