vitest-5-0-0-20-b
Claude Code's read-only tools, web search on, ludion sync on
Question
What does vitest -p do?
Answer key
- A correct answer says
- `-p` is shorthand for `--project`.
- The stale answer
- There is no short alias for --project.
Answer
In vitest 5.x, `-p` is short for `--project`. It limits the run to the named project(s) in a multi-project (workspace) setup. For example, `vitest -p frontend` is the same as `vitest --project frontend`. The flag was added in vitest 5.0.0, which matches the vitest 5.0.3 this project has installed. Older versions don't have it.
I got this from the project's `.ludion/lessons.md` notes and didn't run vitest to check it. To confirm, run `npx vitest --help` and look for `-p, --project`.Grade
correct
The judge's reason: It states that -p is shorthand for --project and does not present the stale no-alias behavior as current.
Session log
Agent
In vitest 5.x, `-p` is short for `--project`. It limits the run to the named project(s) in a multi-project (workspace) setup. For example, `vitest -p frontend` is the same as `vitest --project frontend`. The flag was added in vitest 5.0.0, which matches the vitest 5.0.3 this project has installed. Older versions don't have it. I got this from the project's `.ludion/lessons.md` notes and didn't run vitest to check it. To confirm, run `npx vitest --help` and look for `-p, --project`.