From e5ce304081d29e7c517962fffefea2543839473d Mon Sep 17 00:00:00 2001 From: leejooy96 Date: Sun, 27 Apr 2025 18:56:05 +0900 Subject: [PATCH] chore: correctly ignore ts rules --- tests/fixtures.mts | 2 +- tests/specs/app.spec.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/fixtures.mts b/tests/fixtures.mts index 80adc04..d435bc0 100644 --- a/tests/fixtures.mts +++ b/tests/fixtures.mts @@ -64,7 +64,7 @@ export const test = base.test.extend({ page: async ({}, use) => { await use(page) }, - // @ts-ignore + // @ts-expect-error: `util` is not using types in playwright util: async ({ page }, use, testInfo) => { await use(new TestUtil(page, testInfo, __testScreenshotPath)) } diff --git a/tests/specs/app.spec.ts b/tests/specs/app.spec.ts index 8147621..883443e 100644 --- a/tests/specs/app.spec.ts +++ b/tests/specs/app.spec.ts @@ -3,7 +3,7 @@ import { test, expect, beforeAll, afterAll } from '../fixtures.mjs' test.beforeAll(beforeAll) test.afterAll(afterAll) -// @ts-ignore +// @ts-expect-error: `util` is not using types in playwright test('Document element check', async ({ page, util }) => { try { await expect( @@ -21,7 +21,7 @@ test('Document element check', async ({ page, util }) => { } }) -// @ts-ignore +// @ts-expect-error: `util` is not using types in playwright test('Counter button click check', async ({ page, util }) => { try { await page.getByTestId('btn-counter').click({ clickCount: 10, delay: 50 })