Skip to content

Commit a6cc1bf

Browse files
committed
test: update lint-vite-plus-imports snap
1 parent f6441a9 commit a6cc1bf

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

  • packages/cli/snap-tests/lint-vite-plus-imports

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,5 +1,28 @@
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+
326
× vite-plus(prefer-vite-plus-imports): Use 'vite-plus/test' instead of 'vitest' in Vite+ projects.
427
╭─[src/types.ts:1:30]
528
1 │ type TestFn = (typeof import('vitest'))['test'];
@@ -55,29 +78,6 @@
5578
10 │
5679
╰────
5780

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)