boolean
false
--dangerouslyIgnoreUnhandledErrors--dangerouslyIgnoreUnhandledErrors=falseIf 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.
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
dangerouslyIgnoreUnhandledErrors: true,
},
})
© 2021-Present VoidZero Inc. and Vitest contributors
Licensed under the MIT License.
https://vitest.dev/config/dangerouslyignoreunhandlederrors