From 8cc8e51042833c58d91ad42ba96c140ff7aee9ab Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Thu, 24 Oct 2024 11:14:48 +0100 Subject: [PATCH] chore: replace deprecated `File` type with `RunnerTestFile` (#18448) --- playground/vitestSetup.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playground/vitestSetup.ts b/playground/vitestSetup.ts index 2b2385209..a1a986d98 100644 --- a/playground/vitestSetup.ts +++ b/playground/vitestSetup.ts @@ -21,7 +21,7 @@ import { } from 'vite' import type { Browser, Page } from 'playwright-chromium' import type { RollupError, RollupWatcher, RollupWatcherEvent } from 'rollup' -import type { File } from 'vitest' +import type { RunnerTestFile } from 'vitest' import { beforeAll, inject } from 'vitest' // #region env @@ -81,7 +81,7 @@ export function setViteUrl(url: string): void { // #endregion beforeAll(async (s) => { - const suite = s as File + const suite = s as RunnerTestFile testPath = suite.filepath! testName = slash(testPath).match(/playground\/([\w-]+)\//)?.[1]