Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4523a0 commit fdff1bfCopy full SHA for fdff1bf
1 file changed
packages/ui/node/index.ts
@@ -1,5 +1,4 @@
1
-import type { Plugin } from 'vite'
2
-import type { Vitest } from 'vitest/node'
+import type { Vite, Vitest } from 'vitest/node'
3
import fs from 'node:fs'
4
import { fileURLToPath } from 'node:url'
5
import { join, resolve } from 'pathe'
@@ -8,7 +7,7 @@ import c from 'tinyrainbow'
8
7
import { isFileServingAllowed, isValidApiRequest } from 'vitest/node'
9
import { version } from '../package.json'
10
11
-export default (ctx: Vitest): Plugin => {
+export default (ctx: Vitest): Vite.Plugin => {
12
if (ctx.version !== version) {
13
ctx.logger.warn(
14
c.yellow(
@@ -19,7 +18,7 @@ export default (ctx: Vitest): Plugin => {
19
18
)
20
}
21
22
- return <Plugin>{
+ return <Vite.Plugin>{
23
name: 'vitest:ui',
24
apply: 'serve',
25
configureServer: {
0 commit comments