[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

fix(ui): don't leak vite types (#10005)

authored by

Vladimir and committed by
GitHub
(Mar 28, 2026, 9:25 AM +0100) fdff1bf9 a4523a04

+3 -4
+3 -4
packages/ui/node/index.ts
··· 1 - import type { Plugin } from 'vite' 2 - import type { Vitest } from 'vitest/node' 1 + import type { Vite, Vitest } from 'vitest/node' 3 2 import fs from 'node:fs' 4 3 import { fileURLToPath } from 'node:url' 5 4 import { join, resolve } from 'pathe' ··· 8 7 import { isFileServingAllowed, isValidApiRequest } from 'vitest/node' 9 8 import { version } from '../package.json' 10 9 11 - export default (ctx: Vitest): Plugin => { 10 + export default (ctx: Vitest): Vite.Plugin => { 12 11 if (ctx.version !== version) { 13 12 ctx.logger.warn( 14 13 c.yellow( ··· 19 18 ) 20 19 } 21 20 22 - return <Plugin>{ 21 + return <Vite.Plugin>{ 23 22 name: 'vitest:ui', 24 23 apply: 'serve', 25 24 configureServer: {