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 ed8a2eb commit 3326cc9Copy full SHA for 3326cc9
packages/vitest/src/runtime/moduleRunner/moduleEvaluator.ts
@@ -102,6 +102,7 @@ export class VitestModuleEvaluator implements ModuleEvaluator {
102
103
const file = this.convertIdToImportUrl(id)
104
105
+ const finishModuleExecutionInfo = this.debug.startCalculateModuleExecutionInfo(file, 0)
106
const namespace = await this._otel.$(
107
'vitest.module.external',
108
{
@@ -110,7 +111,9 @@ export class VitestModuleEvaluator implements ModuleEvaluator {
110
111
() => this.vm
112
? this.vm.externalModulesExecutor.import(file)
113
: import(file),
- )
114
+ ).finally(() => {
115
+ finishModuleExecutionInfo()
116
+ })
117
118
if (!this.shouldInterop(file, namespace)) {
119
return namespace
0 commit comments