From 4d10d72e91b6d81d90d93ad9a7eb7b721bab5f15 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 8 Mar 2024 15:33:50 -0800 Subject: [PATCH] harden type --- packages/playwright/src/matchers/toMatchSnapshot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/playwright/src/matchers/toMatchSnapshot.ts b/packages/playwright/src/matchers/toMatchSnapshot.ts index 3b315202ca..e9b64e9095 100644 --- a/packages/playwright/src/matchers/toMatchSnapshot.ts +++ b/packages/playwright/src/matchers/toMatchSnapshot.ts @@ -121,7 +121,7 @@ class SnapshotHelper { // // noop // expect.toMatchSnapshot('a.png') - let inputPathSegments: NameOrSegments | undefined; + let inputPathSegments: string[]; if (!name) { const fullTitleWithoutSpec = [ ...testInfo.titlePath.slice(1),