Skip to content

Commit 87d36a7

Browse files
committedMar 28, 2024··
fix: don't check for "node:internal/console/" in console interceptor in case the environment is not Node.js
1 parent 3463f9b commit 87d36a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/vitest/src/runtime/console.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function getTaskIdByStack(root: string) {
1313
if (!stack)
1414
return UNKNOWN_TEST_ID
1515

16-
const index = stack.findIndex(line => line.includes('at Console.value (node:internal/console/'))
16+
const index = stack.findIndex(line => line.includes('at Console.value'))
1717
const line = index === -1 ? null : stack[index + 2]
1818

1919
if (!line)

0 commit comments

Comments
 (0)
Please sign in to comment.