Skip to content

Commit 8dc1c3c

Browse files
authored
fix: use correct word when printing "long-running" warning (#2546)
1 parent 991ff33 commit 8dc1c3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vitest/src/runtime/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,5 @@ export function createTestContext(test: Test): TestContext {
7575
}
7676

7777
function makeTimeoutMsg(isHook: boolean, timeout: number) {
78-
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'}".`
78+
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'}".`
7979
}

0 commit comments

Comments
 (0)