chore: replace deprecated File type with RunnerTestFile (#18448)

This commit is contained in:
Dario Piotrowicz 2024-10-24 11:14:48 +01:00 committed by GitHub
parent f1d3bf74cc
commit 8cc8e51042
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]