Skip to content

Commit c63f426

Browse files
committed
fix: fixture review fixes
1 parent f9cbb28 commit c63f426

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/fixtures.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,7 @@ type FixturesFromMap<T extends PageObjectConstructorsMap> = {
3333
*/
3434
export function createFixtures<T extends PageObjectConstructorsMap>(
3535
pageObjects: T,
36-
): Fixtures<
37-
FixturesFromMap<T>,
38-
Record<string, never>,
39-
Record<string, never>,
40-
Record<string, never>
41-
> {
36+
): Fixtures<FixturesFromMap<T>, {}, {}, {}> {
4237
const fixtures: Record<
4338
string,
4439
(args: { page: Page }, use: (r: unknown) => Promise<void>) => Promise<void>
@@ -56,10 +51,5 @@ export function createFixtures<T extends PageObjectConstructorsMap>(
5651
};
5752
}
5853

59-
return fixtures as Fixtures<
60-
FixturesFromMap<T>,
61-
Record<string, never>,
62-
Record<string, never>,
63-
Record<string, never>
64-
>;
54+
return fixtures as Fixtures<FixturesFromMap<T>, {}, {}, {}>;
6555
}

0 commit comments

Comments
 (0)