@vitest/runner
Advanced tools
Comparing version 1.0.0-beta.5 to 1.0.0-beta.6
@@ -437,4 +437,8 @@ import limit from 'p-limit'; | ||
}; | ||
taskFn.skipIf = (condition) => condition ? test.skip : test; | ||
taskFn.runIf = (condition) => condition ? test : test.skip; | ||
taskFn.skipIf = function(condition) { | ||
return condition ? this.skip : this; | ||
}; | ||
taskFn.runIf = function(condition) { | ||
return condition ? this : this.skip; | ||
}; | ||
taskFn.extend = function(fixtures) { | ||
@@ -800,3 +804,3 @@ const _context = mergeContextFixtures(fixtures, context); | ||
if (suite.mode === "run") { | ||
if (!hasTests(suite)) { | ||
if (!runner.config.passWithNoTests && !hasTests(suite)) { | ||
suite.result.state = "fail"; | ||
@@ -803,0 +807,0 @@ if (!((_c = suite.result.errors) == null ? void 0 : _c.length)) { |
{ | ||
"name": "@vitest/runner", | ||
"type": "module", | ||
"version": "1.0.0-beta.5", | ||
"version": "1.0.0-beta.6", | ||
"description": "Vitest test runner", | ||
@@ -43,3 +43,3 @@ "license": "MIT", | ||
"pathe": "^1.1.1", | ||
"@vitest/utils": "1.0.0-beta.5" | ||
"@vitest/utils": "1.0.0-beta.6" | ||
}, | ||
@@ -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
56878
1444
+ Added@vitest/utils@1.0.0-beta.6(transitive)
- Removed@vitest/utils@1.0.0-beta.5(transitive)
Updated@vitest/utils@1.0.0-beta.6