Skip to content

Commit

Permalink
fix(build): no test case will throw error (#5032)
Browse files Browse the repository at this point in the history
`vitest` will throw error by default if no test is found. To suppress this error, we need to add `--passWithNoTests` to the options.

An alternative is to set up a `vitest.config` file and define that option. That's probably overdone since emitter codes are no longer maintained here.
  • Loading branch information
archerzz authored Sep 2, 2024
1 parent 3ce539e commit f7828c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/scripts/Test-Packages.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ try {
Invoke-LoggedCommand "npm run prettier" -GroupOutput
Invoke-LoggedCommand "npm run lint" -GroupOutput
Invoke-LoggedCommand "npm run build" -GroupOutput
Invoke-LoggedCommand "npm run test" -GroupOutput
Invoke-LoggedCommand "npm run test -- --passWithNoTests" -GroupOutput
}
finally {
Pop-Location
Expand Down

0 comments on commit f7828c6

Please sign in to comment.