@vitest/expect 5.0.0-beta.1 → 5.0.0-beta.3
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 +1 -1
- package/package.json +6 -5
package/dist/index.d.ts
CHANGED
|
@@ -209,7 +209,7 @@ interface CustomMatcher {
|
|
|
209
209
|
* expect('foo').toBeOneOf([expect.any(String)])
|
|
210
210
|
* expect({ a: 1 }).toEqual({ a: expect.toBeOneOf(['1', '2', '3']) })
|
|
211
211
|
*/
|
|
212
|
-
toBeOneOf: <T>(sample:
|
|
212
|
+
toBeOneOf: <T>(sample: ReadonlyArray<T> | ReadonlySet<T>) => any;
|
|
213
213
|
}
|
|
214
214
|
interface AsymmetricMatchersContaining extends CustomMatcher {
|
|
215
215
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest/expect",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.0.0-beta.
|
|
4
|
+
"version": "5.0.0-beta.3",
|
|
5
5
|
"description": "Jest's expect matchers as a Chai plugin",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://opencollective.com/vitest",
|
|
@@ -23,10 +23,11 @@
|
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"exports": {
|
|
25
25
|
".": {
|
|
26
|
+
"__vitest_source__": "./src/index.ts",
|
|
26
27
|
"types": "./dist/index.d.ts",
|
|
27
28
|
"default": "./dist/index.js"
|
|
28
29
|
},
|
|
29
|
-
"
|
|
30
|
+
"./package.json": "./package.json"
|
|
30
31
|
},
|
|
31
32
|
"main": "./dist/index.js",
|
|
32
33
|
"module": "./dist/index.js",
|
|
@@ -39,11 +40,11 @@
|
|
|
39
40
|
"@types/chai": "^5.2.2",
|
|
40
41
|
"chai": "^6.2.2",
|
|
41
42
|
"tinyrainbow": "^3.1.0",
|
|
42
|
-
"@vitest/spy": "5.0.0-beta.
|
|
43
|
-
"@vitest/utils": "5.0.0-beta.
|
|
43
|
+
"@vitest/spy": "5.0.0-beta.3",
|
|
44
|
+
"@vitest/utils": "5.0.0-beta.3"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
|
-
"@vitest/runner": "5.0.0-beta.
|
|
47
|
+
"@vitest/runner": "5.0.0-beta.3"
|
|
47
48
|
},
|
|
48
49
|
"scripts": {
|
|
49
50
|
"build": "premove dist && rollup -c",
|