From 8dc1c3cbed472e715317f0a1d06145ee86a03ade Mon Sep 17 00:00:00 2001 From: Simon Abbott Date: Wed, 21 Dec 2022 01:08:38 -0600 Subject: [PATCH] fix: use correct word when printing "long-running" warning (#2546) --- packages/vitest/src/runtime/context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'}".` }