@vitest/runner
Advanced tools
Comparing version 1.5.3 to 1.6.0
@@ -473,5 +473,10 @@ import limit from 'p-limit'; | ||
); | ||
const fnFirst = typeof optionsOrFn === "function"; | ||
cases.forEach((i, idx) => { | ||
const items = Array.isArray(i) ? i : [i]; | ||
arrayOnlyCases ? suite2(formatTitle(_name, items, idx), options, () => handler(...items)) : suite2(formatTitle(_name, items, idx), options, () => handler(i)); | ||
if (fnFirst) { | ||
arrayOnlyCases ? suite2(formatTitle(_name, items, idx), () => handler(...items), options) : suite2(formatTitle(_name, items, idx), () => handler(i), options); | ||
} else { | ||
arrayOnlyCases ? suite2(formatTitle(_name, items, idx), options, () => handler(...items)) : suite2(formatTitle(_name, items, idx), options, () => handler(i)); | ||
} | ||
}); | ||
@@ -502,5 +507,10 @@ this.setContext("each", void 0); | ||
); | ||
const fnFirst = typeof optionsOrFn === "function"; | ||
cases.forEach((i, idx) => { | ||
const items = Array.isArray(i) ? i : [i]; | ||
arrayOnlyCases ? test2(formatTitle(_name, items, idx), options, () => handler(...items)) : test2(formatTitle(_name, items, idx), options, () => handler(i)); | ||
if (fnFirst) { | ||
arrayOnlyCases ? test2(formatTitle(_name, items, idx), () => handler(...items), options) : test2(formatTitle(_name, items, idx), () => handler(i), options); | ||
} else { | ||
arrayOnlyCases ? test2(formatTitle(_name, items, idx), options, () => handler(...items)) : test2(formatTitle(_name, items, idx), options, () => handler(i)); | ||
} | ||
}); | ||
@@ -507,0 +517,0 @@ this.setContext("each", void 0); |
{ | ||
"name": "@vitest/runner", | ||
"type": "module", | ||
"version": "1.5.3", | ||
"version": "1.6.0", | ||
"description": "Vitest test runner", | ||
@@ -43,3 +43,3 @@ "license": "MIT", | ||
"pathe": "^1.1.1", | ||
"@vitest/utils": "1.5.3" | ||
"@vitest/utils": "1.6.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
64142
1615
+ Added@vitest/utils@1.6.0(transitive)
- Removed@vitest/utils@1.5.3(transitive)
Updated@vitest/utils@1.6.0