diff --git a/packages/vitest/src/runtime/context.ts b/packages/vitest/src/runtime/context.ts index 76ed38716f2a..2f1fe95f6c8c 100644 --- a/packages/vitest/src/runtime/context.ts +++ b/packages/vitest/src/runtime/context.ts @@ -75,5 +75,5 @@ export function createTestContext(test: Test): TestContext { } function makeTimeoutMsg(isHook: boolean, timeout: number) { - return `${isHook ? 'Hook' : 'Test'} timed out in ${timeout}ms.\nIf this is a long-running test, pass a timeout value as the last argument or configure it globally with "${isHook ? 'hookTimeout' : 'testTimeout'}".` + return `${isHook ? 'Hook' : 'Test'} timed out in ${timeout}ms.\nIf this is a long-running ${isHook ? 'hook' : 'test'}, pass a timeout value as the last argument or configure it globally with "${isHook ? 'hookTimeout' : 'testTimeout'}".` }