From 13e53ac7b3c2b0a5eab01ba2d5c2860ccc8667e1 Mon Sep 17 00:00:00 2001 From: Vladimir Sheremet Date: Fri, 13 Jan 2023 16:30:54 +0100 Subject: [PATCH] fix: increase default teardownTimeout --- docs/config/index.md | 2 +- packages/vitest/src/defaults.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/config/index.md b/docs/config/index.md index 581498e0eb6c..a61b5f51906f 100644 --- a/docs/config/index.md +++ b/docs/config/index.md @@ -473,7 +473,7 @@ Default timeout of a hook in milliseconds ### teardownTimeout - **Type:** `number` -- **Default:** `1000` +- **Default:** `10000` Default timeout to wait for close when Vitest shuts down, in milliseconds diff --git a/packages/vitest/src/defaults.ts b/packages/vitest/src/defaults.ts index 61d51640da0c..5aef9bc4bdaf 100644 --- a/packages/vitest/src/defaults.ts +++ b/packages/vitest/src/defaults.ts @@ -67,7 +67,7 @@ const config = { exclude: defaultExclude, testTimeout: 5000, hookTimeout: 10000, - teardownTimeout: 1000, + teardownTimeout: 10000, isolate: true, watchExclude: ['**/node_modules/**', '**/dist/**'], forceRerunTriggers: [