Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vitest CLI 1.3.0 no longer accepts multiple projects via --project option #5262

Closed
6 tasks done
ldiqual opened this issue Feb 21, 2024 · 0 comments · Fixed by #5265
Closed
6 tasks done

Vitest CLI 1.3.0 no longer accepts multiple projects via --project option #5262

ldiqual opened this issue Feb 21, 2024 · 0 comments · Fixed by #5265
Labels
p3-minor-bug An edge case that only affects very specific usage (priority)

Comments

@ldiqual
Copy link

ldiqual commented Feb 21, 2024

Describe the bug

yarn vitest --project <project1> <project2> no longer works as of 1.3.0.

Error: Expected a single value for option "--project <name>", received ["project1", "project2"]
    at transform (file:///home/circleci/project/node_modules/vitest/dist/vendor/cac.wWT9ELdg.js:19369:13)
    at setDotProp (file:///home/circleci/project/node_modules/vitest/dist/vendor/cac.wWT9ELdg.js:316:22)
    at CAC.mri (file:///home/circleci/project/node_modules/vitest/dist/vendor/cac.wWT9ELdg.js:700:9)
    at CAC.parse (file:///home/circleci/project/node_modules/vitest/dist/vendor/cac.wWT9ELdg.js:617:27)
    at file:///home/circleci/project/node_modules/vitest/dist/cli.js:67:13
    at ModuleJob.run (node:internal/modules/esm/module_job:194:25)

I could not find a relevant changelog line for this.

Reproduction

yarn vitest --project <project1> <project2> where project1 and project2 are 2 projects in the vitest workspace

System Info

System:
    OS: macOS 14.2.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 128.27 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.17.1 - ~/Library/Caches/fnm_multishells/60559_1708468325626/bin/node
    Yarn: 3.8.0 - ~/Library/Caches/fnm_multishells/60559_1708468325626/bin/yarn
    npm: 9.6.7 - ~/Library/Caches/fnm_multishells/60559_1708468325626/bin/npm
  Browsers:
    Chrome: 121.0.6167.184
    Firefox: 109.0.1
    Safari: 17.2.1
  npmPackages:
    @vitejs/plugin-react-swc: 3.6.0 => 3.6.0
    vite: 5.1.3 => 5.1.3
    vitest: 1.2.2 => 1.2.2

Used Package Manager

yarn

Validations

@sheremet-va sheremet-va added p3-minor-bug An edge case that only affects very specific usage (priority) and removed pending triage labels Feb 21, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Mar 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants