mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 22:59:10 +00:00
chore: replace deprecated File
type with RunnerTestFile
(#18448)
This commit is contained in:
parent
f1d3bf74cc
commit
8cc8e51042
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user