mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
720 B
720 B
title, outline
| title | outline |
|---|---|
| dangerouslyIgnoreUnhandledErrors | Config | deep |
dangerouslyIgnoreUnhandledErrors
- Type:
boolean - Default:
false - CLI:
--dangerouslyIgnoreUnhandledErrors--dangerouslyIgnoreUnhandledErrors=false
If this option is set to true, Vitest will not fail the test run if there are unhandled errors. Note that built-in reporters will still report them.
If you want to filter out certain errors conditionally, use onUnhandledError callback instead.
Example
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
dangerouslyIgnoreUnhandledErrors: true,
},
})