From 882763be2441f9f47f12dbb12d383363989bafa6 Mon Sep 17 00:00:00 2001 From: Pengoose Date: Tue, 8 Oct 2024 12:24:29 +0900 Subject: [PATCH] test: add regression test(types-2.spec) --- tests/playwright-test/types-2.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/playwright-test/types-2.spec.ts b/tests/playwright-test/types-2.spec.ts index e61d4870ed..ed9df2c033 100644 --- a/tests/playwright-test/types-2.spec.ts +++ b/tests/playwright-test/types-2.spec.ts @@ -33,6 +33,7 @@ test('basics should work', async ({ runTSC }) => { test.skip('my test', async () => {}); test.fixme('my test', async () => {}); test.fail('my test', async () => {}); + test.fail.only('my test', async () => {}); }); test.describe(() => { test('my test', () => {}); @@ -59,6 +60,7 @@ test('basics should work', async ({ runTSC }) => { test.fixme('title', { tag: '@foo' }, () => {}); test.only('title', { tag: '@foo' }, () => {}); test.fail('title', { tag: '@foo' }, () => {}); + test.fail.only('title', { tag: '@foo' }, () => {}); test.describe('title', { tag: '@foo' }, () => {}); test.describe('title', { annotation: { type: 'issue' } }, () => {}); // @ts-expect-error @@ -66,6 +68,8 @@ test('basics should work', async ({ runTSC }) => { test.describe.skip('title', { tag: '@foo' }, () => {}); test.describe.fixme('title', { tag: '@foo' }, () => {}); test.describe.only('title', { tag: '@foo' }, () => {}); + // @ts-expect-error + test.only.fail('my test', async () => {}); ` }); expect(result.exitCode).toBe(0);