Skip to content

Commit

Permalink
Use a hack instead of ts-expect-error
Browse files Browse the repository at this point in the history
  • Loading branch information
manzoorwanijk committed Dec 27, 2024
1 parent ba01ad6 commit a0145d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/specs/interactivity/fixtures/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ type Fixtures = {
};

export const test = base.extend< Fixtures >( {
// @ts-expect-error: The required type is 'test', but can be 'worker' too. See
// https://playwright.dev/docs/test-fixtures#worker-scoped-fixtures
interactivityUtils: [
async ( { requestUtils }, use ) => {
await use( new InteractivityUtils( { requestUtils } ) );
},
{ scope: 'worker' },
// This is a hack, 'worker' is a valid value but the type is wrong.
// https://playwright.dev/docs/test-fixtures#worker-scoped-fixtures
{ scope: 'worker' as 'test' },
],
} );

0 comments on commit a0145d0

Please sign in to comment.