File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1- import type { Plugin } from 'vite'
2- import type { Vitest } from 'vitest/node'
1+ import type { Vite , Vitest } from 'vitest/node'
32import fs from 'node:fs'
43import { fileURLToPath } from 'node:url'
54import { join , resolve } from 'pathe'
@@ -8,7 +7,7 @@ import c from 'tinyrainbow'
87import { isFileServingAllowed , isValidApiRequest } from 'vitest/node'
98import { version } from '../package.json'
109
11- export default ( ctx : Vitest ) : Plugin => {
10+ export default ( ctx : Vitest ) : Vite . Plugin => {
1211 if ( ctx . version !== version ) {
1312 ctx . logger . warn (
1413 c . yellow (
@@ -19,7 +18,7 @@ export default (ctx: Vitest): Plugin => {
1918 )
2019 }
2120
22- return < Plugin > {
21+ return < Vite . Plugin > {
2322 name : 'vitest:ui' ,
2423 apply : 'serve' ,
2524 configureServer : {
You can’t perform that action at this time.
0 commit comments