Skip to content

Commit 8cc8e51

Browse files
chore: replace deprecated File type with RunnerTestFile (#18448)
1 parent f1d3bf7 commit 8cc8e51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

playground/vitestSetup.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
} from 'vite'
2222
import type { Browser, Page } from 'playwright-chromium'
2323
import type { RollupError, RollupWatcher, RollupWatcherEvent } from 'rollup'
24-
import type { File } from 'vitest'
24+
import type { RunnerTestFile } from 'vitest'
2525
import { beforeAll, inject } from 'vitest'
2626

2727
// #region env
@@ -81,7 +81,7 @@ export function setViteUrl(url: string): void {
8181
// #endregion
8282

8383
beforeAll(async (s) => {
84-
const suite = s as File
84+
const suite = s as RunnerTestFile
8585

8686
testPath = suite.filepath!
8787
testName = slash(testPath).match(/playground\/([\w-]+)\//)?.[1]

0 commit comments

Comments
 (0)