@vitest/expect 0.28.3 → 0.28.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -8
- package/package.json +3 -3
package/dist/index.js
CHANGED
@@ -107,13 +107,6 @@ function diff(a, b, options) {
|
|
107
107
|
});
|
108
108
|
}
|
109
109
|
|
110
|
-
var matcherUtils = /*#__PURE__*/Object.freeze({
|
111
|
-
__proto__: null,
|
112
|
-
stringify: stringify,
|
113
|
-
getMatcherUtils: getMatcherUtils,
|
114
|
-
diff: diff
|
115
|
-
});
|
116
|
-
|
117
110
|
function equals(a, b, customTesters, strictCheck) {
|
118
111
|
customTesters = customTesters || [];
|
119
112
|
return eq(a, b, [], [], customTesters, strictCheck ? hasKey : hasDefinedKey);
|
@@ -418,7 +411,13 @@ class AsymmetricMatcher {
|
|
418
411
|
...getState(expect || globalThis[GLOBAL_EXPECT]),
|
419
412
|
equals,
|
420
413
|
isNot: this.inverse,
|
421
|
-
utils:
|
414
|
+
utils: {
|
415
|
+
...getMatcherUtils(),
|
416
|
+
diff,
|
417
|
+
stringify,
|
418
|
+
iterableEquality,
|
419
|
+
subsetEquality
|
420
|
+
}
|
422
421
|
};
|
423
422
|
}
|
424
423
|
}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitest/expect",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.28.
|
4
|
+
"version": "0.28.4",
|
5
5
|
"description": "Jest's expect matchers as a Chai plugin",
|
6
6
|
"license": "MIT",
|
7
7
|
"repository": {
|
@@ -25,8 +25,8 @@
|
|
25
25
|
],
|
26
26
|
"dependencies": {
|
27
27
|
"chai": "^4.3.7",
|
28
|
-
"@vitest/spy": "0.28.
|
29
|
-
"@vitest/utils": "0.28.
|
28
|
+
"@vitest/spy": "0.28.4",
|
29
|
+
"@vitest/utils": "0.28.4"
|
30
30
|
},
|
31
31
|
"devDependencies": {
|
32
32
|
"picocolors": "^1.0.0"
|