Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7063d4d commit f3ec6fcCopy full SHA for f3ec6fc
packages/vitest/src/integrations/vi.ts
@@ -783,7 +783,7 @@ function getImporter(name: string) {
783
const stackArray = stackTrace.split('\n')
784
// if there is no message in a stack trace, use the item - 1
785
const importerStackIndex = stackArray.findLastIndex((stack) => {
786
- return stack.includes(` at Object.${name}`) || stack.includes(`${name}@`)
+ return stack.includes(` at Object.${name}`) || stack.includes(`${name}@`) || stack.includes(` at ${name} (`)
787
})
788
const stack = parseSingleStack(stackArray[importerStackIndex + 1])
789
return stack?.file || ''
0 commit comments