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: [