Skip to content

Commit

Permalink
chore: wording
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 15, 2022
1 parent f13e54f commit 81def16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/vitest/src/node/cli-wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import c from 'picocolors'
import { execa } from 'execa'

const ENTRY = new URL('./cli.mjs', import.meta.url)
const NODE_ARGS = ['--inspect', '--inspect-brk']
const NODE_ARGS = ['--inspect', '--inspect-brk', '--trace-deprecation']

interface ErrorDef {
trigger: string
Expand Down
4 changes: 2 additions & 2 deletions packages/vitest/src/node/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ export class Logger {

async printUnhandledErrors(errors: unknown[]) {
const errorMessage = c.red(c.bold(
`\nVitest caught ${errors.length} unhandled error${errors.length > 1 ? 's' : ''} during the test run. This might cause false positive tests.`
+ '\nPlease, resolve all errors to make sure your tests are not affected.',
`\nVitest caught ${errors.length} unhandled error${errors.length > 1 ? 's' : ''} during the test run.`
+ '\nThis might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.',
))
this.log(c.red(divider(c.bold(c.inverse(' Unhandled Errors ')))))
this.log(errorMessage)
Expand Down

0 comments on commit 81def16

Please sign in to comment.