Skip to content

Commit 438f99e

Browse files
committed
test: update lint-vite-plus-imports snap
1 parent 75b86ee commit 438f99e

File tree

1 file changed

+23
-23
lines changed
  • packages/cli/snap-tests/lint-vite-plus-imports

1 file changed

+23
-23
lines changed

packages/cli/snap-tests/lint-vite-plus-imports/snap.txt

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,5 @@
11
[1]> vp lint src/index.ts src/types.ts # should fail before fix
22

3-
× vite-plus(prefer-vite-plus-imports): Use 'vite-plus' instead of 'vite' in Vite+ projects.
4-
╭─[src/index.ts:1:30]
5-
1 │ import { defineConfig } from 'vite';
6-
· ──────
7-
2 │
8-
╰────
9-
10-
× vite-plus(prefer-vite-plus-imports): Use 'vite-plus' instead of 'vitest/config' in Vite+ projects.
11-
╭─[src/index.ts:3:30]
12-
2 │
13-
3 │ const configPromise = import('vitest/config');
14-
· ───────────────
15-
4 │
16-
╰────
17-
18-
× vite-plus(prefer-vite-plus-imports): Use 'vite-plus/test' instead of 'vitest' in Vite+ projects.
19-
╭─[src/index.ts:5:24]
20-
4 │
21-
5 │ export { expect } from 'vitest';
22-
· ────────
23-
6 │
24-
╰────
25-
263
× vite-plus(prefer-vite-plus-imports): Use 'vite-plus/test' instead of 'vitest' in Vite+ projects.
274
╭─[src/types.ts:1:30]
285
1 │ type TestFn = (typeof import('vitest'))['test'];
@@ -78,6 +55,29 @@
7855
10 │
7956
╰────
8057

58+
× vite-plus(prefer-vite-plus-imports): Use 'vite-plus' instead of 'vite' in Vite+ projects.
59+
╭─[src/index.ts:1:30]
60+
1 │ import { defineConfig } from 'vite';
61+
· ──────
62+
2 │
63+
╰────
64+
65+
× vite-plus(prefer-vite-plus-imports): Use 'vite-plus' instead of 'vitest/config' in Vite+ projects.
66+
╭─[src/index.ts:3:30]
67+
2 │
68+
3 │ const configPromise = import('vitest/config');
69+
· ───────────────
70+
4 │
71+
╰────
72+
73+
× vite-plus(prefer-vite-plus-imports): Use 'vite-plus/test' instead of 'vitest' in Vite+ projects.
74+
╭─[src/index.ts:5:24]
75+
4 │
76+
5 │ export { expect } from 'vitest';
77+
· ────────
78+
6 │
79+
╰────
80+
8181
Found 0 warnings and 10 errors.
8282
Finished in <variable>ms on 2 files with <variable> rules using <variable> threads.
8383

0 commit comments

Comments
 (0)