File tree Expand file tree Collapse file tree
packages/cli/snap-tests/lint-vite-plus-imports-nuxt Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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]
1818Found 0 warnings and 2 errors.
1919Finished 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
2222Found 0 warnings and 0 errors.
2323Finished in <variable>ms on 2 files with <variable> rules using <variable> threads.
2424
@@ -36,6 +36,6 @@ import { expect } from 'vite-plus/test';
3636
3737void 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
4040Found 0 warnings and 0 errors.
4141Finished in <variable>ms on 2 files with <variable> rules using <variable> threads.
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments