Skip to content

Commit

Permalink
fix: use correct word when printing "long-running" warning (#2546)
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-abbott committed Dec 21, 2022
1 parent 991ff33 commit 8dc1c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/runtime/context.ts
Expand Up @@ -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'}".`
}

0 comments on commit 8dc1c3c

Please sign in to comment.