@vitest/expect 3.2.0 → 3.2.2
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.d.ts +2 -1
- package/package.json +6 -7
- package/index.d.ts +0 -3
package/dist/index.d.ts
CHANGED
@@ -235,7 +235,8 @@ interface AsymmetricMatchersContaining extends CustomMatcher {
|
|
235
235
|
*/
|
236
236
|
closeTo: (expected: number, precision?: number) => any;
|
237
237
|
}
|
238
|
-
type
|
238
|
+
type WithAsymmetricMatcher<T> = T | AsymmetricMatcher<unknown>;
|
239
|
+
type DeeplyAllowMatchers<T> = T extends Array<infer Element> ? WithAsymmetricMatcher<T> | DeeplyAllowMatchers<Element>[] : T extends object ? WithAsymmetricMatcher<T> | { [K in keyof T] : DeeplyAllowMatchers<T[K]> } : WithAsymmetricMatcher<T>;
|
239
240
|
interface JestAssertion<T = any> extends jest.Matchers<void, T>, CustomMatcher {
|
240
241
|
/**
|
241
242
|
* Used when you want to check that two objects have the same value.
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitest/expect",
|
3
3
|
"type": "module",
|
4
|
-
"version": "3.2.
|
4
|
+
"version": "3.2.2",
|
5
5
|
"description": "Jest's expect matchers as a Chai plugin",
|
6
6
|
"license": "MIT",
|
7
7
|
"funding": "https://opencollective.com/vitest",
|
@@ -17,28 +17,27 @@
|
|
17
17
|
"sideEffects": false,
|
18
18
|
"exports": {
|
19
19
|
".": {
|
20
|
-
"types": "./index.d.ts",
|
20
|
+
"types": "./dist/index.d.ts",
|
21
21
|
"default": "./dist/index.js"
|
22
22
|
},
|
23
23
|
"./*": "./*"
|
24
24
|
},
|
25
25
|
"main": "./dist/index.js",
|
26
26
|
"module": "./dist/index.js",
|
27
|
-
"types": "./index.d.ts",
|
27
|
+
"types": "./dist/index.d.ts",
|
28
28
|
"files": [
|
29
|
-
"*.d.ts",
|
30
29
|
"dist"
|
31
30
|
],
|
32
31
|
"dependencies": {
|
33
32
|
"@types/chai": "^5.2.2",
|
34
33
|
"chai": "^5.2.0",
|
35
34
|
"tinyrainbow": "^2.0.0",
|
36
|
-
"@vitest/spy": "3.2.
|
37
|
-
"@vitest/utils": "3.2.
|
35
|
+
"@vitest/spy": "3.2.2",
|
36
|
+
"@vitest/utils": "3.2.2"
|
38
37
|
},
|
39
38
|
"devDependencies": {
|
40
39
|
"rollup-plugin-copy": "^3.5.0",
|
41
|
-
"@vitest/runner": "3.2.
|
40
|
+
"@vitest/runner": "3.2.2"
|
42
41
|
},
|
43
42
|
"scripts": {
|
44
43
|
"build": "rimraf dist && rollup -c",
|
package/index.d.ts
DELETED