Skip to content
Discussion options

You must be logged in to vote

Does this help?

import { defineConfig } from "vitest/config";

export default defineConfig({
  test: {
    reporters: [
      "default",
      {
        // undocumented internal reporter lifecycle
        onProcessTimeout() {
          process.exitCode = 1;
        },
      },
    ],
  },
});

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by guettli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants