Skip to content

Commit 37f5614

Browse files
committed
test(cli): stabilize Nuxt lint snapshot
1 parent c68f763 commit 37f5614

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[1]> vp lint src/nuxt.spec.ts src/unit.spec.ts # only the Nuxt bare import is exempt; subpaths and unrelated files still fail
1+
[1]> vp lint --threads=1 src/nuxt.spec.ts src/unit.spec.ts # only the Nuxt bare import is exempt; subpaths and unrelated files still fail
22

33
× vite-plus(prefer-vite-plus-imports): Use 'vite-plus/test/node' instead of 'vitest/node' in Vite+ projects.
44
╭─[src/nuxt.spec.ts:3:29]
@@ -18,7 +18,7 @@
1818
Found 0 warnings and 2 errors.
1919
Finished in <variable>ms on 2 files with <variable> rules using <variable> threads.
2020

21-
> vp lint --fix src/nuxt.spec.ts src/unit.spec.ts # preserve the compatible bare import while fixing all other Vitest imports
21+
> vp lint --threads=1 --fix src/nuxt.spec.ts src/unit.spec.ts # preserve the compatible bare import while fixing all other Vitest imports
2222
Found 0 warnings and 0 errors.
2323
Finished in <variable>ms on 2 files with <variable> rules using <variable> threads.
2424

@@ -36,6 +36,6 @@ import { expect } from 'vite-plus/test';
3636

3737
void expect;
3838

39-
> vp lint src/nuxt.spec.ts src/unit.spec.ts # confirm the mixed compatible result is clean
39+
> vp lint --threads=1 src/nuxt.spec.ts src/unit.spec.ts # confirm the mixed compatible result is clean
4040
Found 0 warnings and 0 errors.
4141
Finished in <variable>ms on 2 files with <variable> rules using <variable> threads.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"ignoredPlatforms": [{ "os": "linux", "libc": "musl" }],
33
"commands": [
4-
"vp lint src/nuxt.spec.ts src/unit.spec.ts # only the Nuxt bare import is exempt; subpaths and unrelated files still fail",
5-
"vp lint --fix src/nuxt.spec.ts src/unit.spec.ts # preserve the compatible bare import while fixing all other Vitest imports",
4+
"vp lint --threads=1 src/nuxt.spec.ts src/unit.spec.ts # only the Nuxt bare import is exempt; subpaths and unrelated files still fail",
5+
"vp lint --threads=1 --fix src/nuxt.spec.ts src/unit.spec.ts # preserve the compatible bare import while fixing all other Vitest imports",
66
"cat src/nuxt.spec.ts",
77
"cat src/unit.spec.ts",
8-
"vp lint src/nuxt.spec.ts src/unit.spec.ts # confirm the mixed compatible result is clean"
8+
"vp lint --threads=1 src/nuxt.spec.ts src/unit.spec.ts # confirm the mixed compatible result is clean"
99
]
1010
}

0 commit comments

Comments
 (0)