Skip to content

Commit 93ecfd5

Browse files
committed
docs(test/e2e): refresh createGetFixture JSDoc for new return shape
1 parent 09bbf9f commit 93ecfd5

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

test/e2e/lib/fixture-test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,11 @@ function createUsers(fixture: Fixture, description: string): Users {
9595
}
9696

9797
/**
98-
* Shared fixture lifecycle hook. Calls `setupFixture()` once in `beforeAll`
99-
* and cleans up in `afterAll`. Returns a getter that provides the shared
100-
* `{ projectDir }` to all tests in the file.
98+
* Shared fixture lifecycle hook. Calls `setupFixture()` once in `beforeAll`,
99+
* cleans up the fixture in `afterAll`, and cleans up per-test users in
100+
* `afterEach`. Returns a getter that yields `{ fixture, users }` for tests in
101+
* the file: `fixture` exposes the project metadata (without the internal
102+
* cleanup hook) and `users` provides per-test `create`/`delete` helpers.
101103
*
102104
* Must be called at the top level of a test file (not inside `describe`).
103105
*/

0 commit comments

Comments
 (0)