@vitest/expect 1.0.0-beta.6 → 1.0.1
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 +2 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
@@ -151,6 +151,8 @@ function eq(a, b, aStack, bStack, customTesters, hasKey2) {
|
|
151
151
|
}
|
152
152
|
if (a instanceof Error && b instanceof Error)
|
153
153
|
return a.message === b.message;
|
154
|
+
if (a instanceof URL && b instanceof URL)
|
155
|
+
return a.href === b.href;
|
154
156
|
if (Object.is(a, b))
|
155
157
|
return true;
|
156
158
|
if (a === null || b === null)
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitest/expect",
|
3
3
|
"type": "module",
|
4
|
-
"version": "1.0.
|
4
|
+
"version": "1.0.1",
|
5
5
|
"description": "Jest's expect matchers as a Chai plugin",
|
6
6
|
"license": "MIT",
|
7
7
|
"funding": "https://opencollective.com/vitest",
|
@@ -31,14 +31,14 @@
|
|
31
31
|
],
|
32
32
|
"dependencies": {
|
33
33
|
"chai": "^4.3.10",
|
34
|
-
"@vitest/spy": "1.0.
|
35
|
-
"@vitest/utils": "1.0.
|
34
|
+
"@vitest/spy": "1.0.1",
|
35
|
+
"@vitest/utils": "1.0.1"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
38
38
|
"@types/chai": "4.3.6",
|
39
39
|
"picocolors": "^1.0.0",
|
40
40
|
"rollup-plugin-copy": "^3.5.0",
|
41
|
-
"@vitest/runner": "1.0.
|
41
|
+
"@vitest/runner": "1.0.1"
|
42
42
|
},
|
43
43
|
"scripts": {
|
44
44
|
"build": "rimraf dist && rollup -c",
|