How to make vitest exit non-zero, when there are hanging processes? #9246
-
|
I see that:
But vitest exists with Is there a way to make it exit non-zero, if there are processes hanging? I know, I could write a wrapper which checks the output, but this feels very ugly. |
Beta Was this translation helpful? Give feedback.
Answered by
AriPerkkio
Dec 14, 2025
Replies: 1 comment
-
|
Does this help? import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
reporters: [
"default",
{
// undocumented internal reporter lifecycle
onProcessTimeout() {
process.exitCode = 1;
},
},
],
},
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
guettli
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does this help?