@vitest/runner
Advanced tools
Comparing version 1.0.4 to 1.1.0
@@ -145,3 +145,5 @@ import limit from 'p-limit'; | ||
const useFnArgPromise = createDefer(); | ||
let isUseFnArgResolved = false; | ||
const fixtureReturn = fixture.value(context, async (useFnArg) => { | ||
isUseFnArgResolved = true; | ||
useFnArgPromise.resolve(useFnArg); | ||
@@ -154,3 +156,9 @@ const useReturnPromise = createDefer(); | ||
await useReturnPromise; | ||
}).catch(useFnArgPromise.reject); | ||
}).catch((e) => { | ||
if (!isUseFnArgResolved) { | ||
useFnArgPromise.reject(e); | ||
return; | ||
} | ||
throw e; | ||
}); | ||
resolvedValue = await useFnArgPromise; | ||
@@ -157,0 +165,0 @@ } else { |
{ | ||
"name": "@vitest/runner", | ||
"type": "module", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"description": "Vitest test runner", | ||
@@ -43,3 +43,3 @@ "license": "MIT", | ||
"pathe": "^1.1.1", | ||
"@vitest/utils": "1.0.4" | ||
"@vitest/utils": "1.1.0" | ||
}, | ||
@@ -46,0 +46,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57155
1445
+ Added@vitest/utils@1.1.0(transitive)
- Removed@vitest/utils@1.0.4(transitive)
Updated@vitest/utils@1.1.0