mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 14:48:41 +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'
|
} from 'vite'
|
||||||
import type { Browser, Page } from 'playwright-chromium'
|
import type { Browser, Page } from 'playwright-chromium'
|
||||||
import type { RollupError, RollupWatcher, RollupWatcherEvent } from 'rollup'
|
import type { RollupError, RollupWatcher, RollupWatcherEvent } from 'rollup'
|
||||||
import type { File } from 'vitest'
|
import type { RunnerTestFile } from 'vitest'
|
||||||
import { beforeAll, inject } from 'vitest'
|
import { beforeAll, inject } from 'vitest'
|
||||||
|
|
||||||
// #region env
|
// #region env
|
||||||
@ -81,7 +81,7 @@ export function setViteUrl(url: string): void {
|
|||||||
// #endregion
|
// #endregion
|
||||||
|
|
||||||
beforeAll(async (s) => {
|
beforeAll(async (s) => {
|
||||||
const suite = s as File
|
const suite = s as RunnerTestFile
|
||||||
|
|
||||||
testPath = suite.filepath!
|
testPath = suite.filepath!
|
||||||
testName = slash(testPath).match(/playground\/([\w-]+)\//)?.[1]
|
testName = slash(testPath).match(/playground\/([\w-]+)\//)?.[1]
|
||||||
|
Loading…
Reference in New Issue
Block a user