@vitest/expect 0.34.6 → 1.0.0-beta.0
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/chai.d.ts +1968 -0
- package/dist/index.d.ts +10 -4
- package/package.json +8 -6
package/dist/index.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import { use } from 'chai';
|
2
1
|
import { stringify, Constructable } from '@vitest/utils';
|
3
2
|
export { setupColors } from '@vitest/utils';
|
4
3
|
import { diff } from '@vitest/utils/diff';
|
@@ -37,8 +36,15 @@ declare function getMatcherUtils(): {
|
|
37
36
|
printExpected: (value: unknown) => string;
|
38
37
|
};
|
39
38
|
|
40
|
-
|
41
|
-
|
39
|
+
/**
|
40
|
+
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
41
|
+
*
|
42
|
+
* This source code is licensed under the MIT license found in the
|
43
|
+
* LICENSE file in the root directory of this source tree.
|
44
|
+
*
|
45
|
+
*/
|
46
|
+
|
47
|
+
type ChaiPlugin = Chai.ChaiPlugin;
|
42
48
|
type Tester = (a: any, b: any) => boolean | undefined;
|
43
49
|
|
44
50
|
interface MatcherHintOptions {
|
@@ -254,4 +260,4 @@ declare const JestChaiExpect: ChaiPlugin;
|
|
254
260
|
|
255
261
|
declare const JestExtend: ChaiPlugin;
|
256
262
|
|
257
|
-
export { Any, Anything, ArrayContaining, Assertion, AsymmetricMatcher, AsymmetricMatcherInterface, AsymmetricMatchersContaining, AsyncExpectationResult, ChaiPlugin, ExpectStatic, ExpectationResult,
|
263
|
+
export { Any, Anything, ArrayContaining, Assertion, AsymmetricMatcher, AsymmetricMatcherInterface, AsymmetricMatchersContaining, AsyncExpectationResult, ChaiPlugin, ExpectStatic, ExpectationResult, GLOBAL_EXPECT, JEST_MATCHERS_OBJECT, JestAssertion, JestAsymmetricMatchers, JestChaiExpect, JestExtend, MATCHERS_OBJECT, MatcherHintOptions, MatcherState, MatchersObject, ObjectContaining, RawMatcherFn, StringContaining, StringMatching, SyncExpectationResult, Tester, arrayBufferEquality, equals, fnNameFor, generateToBeMessage, getState, hasAsymmetric, hasProperty, isA, isAsymmetric, isImmutableUnorderedKeyed, isImmutableUnorderedSet, iterableEquality, setState, sparseArrayEquality, subsetEquality, typeEquality };
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitest/expect",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.
|
4
|
+
"version": "1.0.0-beta.0",
|
5
5
|
"description": "Jest's expect matchers as a Chai plugin",
|
6
6
|
"license": "MIT",
|
7
7
|
"funding": "https://opencollective.com/vitest",
|
@@ -17,25 +17,27 @@
|
|
17
17
|
"sideEffects": false,
|
18
18
|
"exports": {
|
19
19
|
".": {
|
20
|
-
"types": "./
|
20
|
+
"types": "./index.d.ts",
|
21
21
|
"import": "./dist/index.js"
|
22
22
|
},
|
23
23
|
"./*": "./*"
|
24
24
|
},
|
25
25
|
"main": "./dist/index.js",
|
26
26
|
"module": "./dist/index.js",
|
27
|
-
"types": "./
|
27
|
+
"types": "./index.d.ts",
|
28
28
|
"files": [
|
29
29
|
"dist"
|
30
30
|
],
|
31
31
|
"dependencies": {
|
32
32
|
"chai": "^4.3.10",
|
33
|
-
"@vitest/utils": "0.
|
34
|
-
"@vitest/spy": "0.
|
33
|
+
"@vitest/utils": "1.0.0-beta.0",
|
34
|
+
"@vitest/spy": "1.0.0-beta.0"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
37
|
+
"@types/chai": "^4.3.6",
|
37
38
|
"picocolors": "^1.0.0",
|
38
|
-
"
|
39
|
+
"rollup-plugin-copy": "^3.5.0",
|
40
|
+
"@vitest/runner": "1.0.0-beta.0"
|
39
41
|
},
|
40
42
|
"scripts": {
|
41
43
|
"build": "rimraf dist && rollup -c",
|