Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
  • Loading branch information
3 people authored Nov 24, 2023
1 parent 5b59f0c commit 6e9e315
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/guide/workspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ bun test
```
:::

If you need to run tests only inside a single project, use `--project` CLI option:
If you need to run tests only inside a single project, use the `--project` CLI option:

```bash
npm run test --project e2e
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/src/node/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ export class Vitest {

this.projects = this.resolvedProjects.filter(p => p.getName() === pattern)
const files = (await this.globTestFiles()).map(([, file]) => file)
await this.rerunFiles(files, `change project filter`)
await this.rerunFiles(files, 'change project filter')
}

async changeNamePattern(pattern: string, files: string[] = this.state.getFilepaths(), trigger?: string) {
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/src/node/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class Logger {
if (filters?.length)
this.console.error(c.dim('filter: ') + c.yellow(filters.join(comma)))
const projectsFilter = toArray(config.project)
if (!projectsFilter.length)
if (projectsFilter.length)
this.console.error(c.dim('projects: ') + c.yellow(projectsFilter.join(comma)))
this.ctx.projects.forEach((project) => {
const config = project.config
Expand Down

0 comments on commit 6e9e315

Please sign in to comment.