You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/cli/snap-tests/lint-vite-plus-imports/snap.txt
+61-25Lines changed: 61 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,60 @@
1
1
[1]> vp lint src/index.ts src/types.ts # should fail before fix
2
2
3
+
× vite-plus(prefer-vite-plus-imports): Use 'vite-plus/test' instead of 'vitest' in Vite+ projects.
4
+
╭─[src/types.ts:1:30]
5
+
1 │ type TestFn = (typeof import('vitest'))['test'];
6
+
· ────────
7
+
2 │ type BrowserContext = typeof import('@vitest/browser/context');
8
+
╰────
9
+
10
+
× vite-plus(prefer-vite-plus-imports): Use 'vite-plus/test/browser/context' instead of '@vitest/browser/context' in Vite+ projects.
11
+
╭─[src/types.ts:2:37]
12
+
1 │ type TestFn = (typeof import('vitest'))['test'];
13
+
2 │ type BrowserContext = typeof import('@vitest/browser/context');
14
+
· ─────────────────────────
15
+
3 │ type BrowserClient = typeof import('@vitest/browser/client');
16
+
╰────
17
+
18
+
× vite-plus(prefer-vite-plus-imports): Use 'vite-plus/test/client' instead of '@vitest/browser/client' in Vite+ projects.
19
+
╭─[src/types.ts:3:36]
20
+
2 │ type BrowserContext = typeof import('@vitest/browser/context');
21
+
3 │ type BrowserClient = typeof import('@vitest/browser/client');
22
+
· ────────────────────────
23
+
4 │ type PlaywrightProvider = typeof import('@vitest/browser-playwright/provider');
24
+
╰────
25
+
26
+
× vite-plus(prefer-vite-plus-imports): Use 'vite-plus/test/browser/providers/playwright' instead of '@vitest/browser-playwright/provider' in Vite+ projects.
27
+
╭─[src/types.ts:4:41]
28
+
3 │ type BrowserClient = typeof import('@vitest/browser/client');
29
+
4 │ type PlaywrightProvider = typeof import('@vitest/browser-playwright/provider');
30
+
· ─────────────────────────────────────
31
+
5 │
32
+
╰────
33
+
34
+
× vite-plus(prefer-vite-plus-imports): Use 'vite-plus/test/browser-playwright' instead of '@vitest/browser-playwright' in Vite+ projects.
0 commit comments