@vitest/expect
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -307,3 +307,3 @@ import { getType, getColors, stringify, isObject, assertTypes } from '@vitest/utils'; | ||
b2, | ||
[...filteredCustomTesters], | ||
[...customTesters], | ||
[...aStack], | ||
@@ -386,3 +386,3 @@ [...bStack] | ||
return Object.keys(subset2).every((key) => { | ||
if (isObjectWithKeys(subset2[key])) { | ||
if (typeof subset2[key] === "object") { | ||
if (seenReferences.has(subset2[key])) | ||
@@ -935,13 +935,14 @@ return equals(object2[key], subset2[key], filteredCustomTesters); | ||
const { subset: actualSubset, stripped } = getObjectSubset(actual, expected); | ||
const msg = utils.getMessage( | ||
this, | ||
[ | ||
pass, | ||
"expected #{this} to match object #{exp}", | ||
"expected #{this} to not match object #{exp}", | ||
expected, | ||
actualSubset | ||
] | ||
); | ||
if (pass && isNot || !pass && !isNot) { | ||
const msg = utils.getMessage( | ||
this, | ||
[ | ||
pass, | ||
"expected #{this} to match object #{exp}", | ||
"expected #{this} to not match object #{exp}", | ||
expected, | ||
actualSubset, | ||
false | ||
] | ||
); | ||
const message = stripped === 0 ? msg : `${msg} | ||
@@ -948,0 +949,0 @@ (${stripped} matching ${stripped === 1 ? "property" : "properties"} omitted from actual)`; |
{ | ||
"name": "@vitest/expect", | ||
"type": "module", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Jest's expect matchers as a Chai plugin", | ||
@@ -34,4 +34,4 @@ "license": "MIT", | ||
"chai": "^4.3.10", | ||
"@vitest/utils": "1.5.0", | ||
"@vitest/spy": "1.5.0" | ||
"@vitest/spy": "1.5.1", | ||
"@vitest/utils": "1.5.1" | ||
}, | ||
@@ -42,3 +42,3 @@ "devDependencies": { | ||
"rollup-plugin-copy": "^3.5.0", | ||
"@vitest/runner": "1.5.0" | ||
"@vitest/runner": "1.5.1" | ||
}, | ||
@@ -45,0 +45,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
142396
1869
+ Added@vitest/spy@1.5.1(transitive)
+ Added@vitest/utils@1.5.1(transitive)
- Removed@vitest/spy@1.5.0(transitive)
- Removed@vitest/utils@1.5.0(transitive)
Updated@vitest/spy@1.5.1
Updated@vitest/utils@1.5.1