@xylabs/vitest-matchers 4.13.14 β 4.13.16
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/README.md
CHANGED
|
@@ -1,69 +1,60 @@
|
|
|
1
|
-
|
|
1
|
+
# @xylabs/vitest-matchers
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[![logo][]](https://xylabs.com)
|
|
4
4
|
|
|
5
|
+
[![main-build][]][main-build-link]
|
|
5
6
|
[![npm-badge][]][npm-link]
|
|
6
7
|
[![npm-downloads-badge][]][npm-link]
|
|
7
8
|
[![jsdelivr-badge][]][jsdelivr-link]
|
|
8
9
|
[![npm-license-badge][]](LICENSE)
|
|
10
|
+
[![codacy-badge][]][codacy-link]
|
|
11
|
+
[![codeclimate-badge][]][codeclimate-link]
|
|
12
|
+
[![snyk-badge][]][snyk-link]
|
|
9
13
|
[![socket-badge][]][socket-link]
|
|
10
14
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Table of Contents
|
|
14
|
-
|
|
15
|
-
- [Description](#description)
|
|
16
|
-
- [Install](#install)
|
|
17
|
-
- [Maintainers](#maintainers)
|
|
18
|
-
- [License](#license)
|
|
19
|
-
- [Credits](#credits)
|
|
20
|
-
|
|
21
|
-
## Description
|
|
22
|
-
|
|
23
|
-
Common Javascript code that is used throughout XYO projects that use React.
|
|
24
|
-
|
|
25
|
-
## Install
|
|
26
|
-
|
|
27
|
-
Using npm:
|
|
15
|
+
Version: 4.13.15
|
|
28
16
|
|
|
29
|
-
|
|
30
|
-
npm i --save @xylabs/log
|
|
31
|
-
```
|
|
17
|
+
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
|
|
32
18
|
|
|
33
|
-
|
|
19
|
+
## Documentation
|
|
34
20
|
|
|
35
|
-
|
|
36
|
-
yarn add @xylabs/log
|
|
37
|
-
```
|
|
21
|
+
Coming Soon!
|
|
38
22
|
|
|
39
|
-
|
|
40
|
-
[Developer Reference](https://xylabs.github.io/sdk-js)
|
|
23
|
+
Part of [sdk-js](https://www.npmjs.com/package/@xyo-network/sdk-js)
|
|
41
24
|
|
|
42
25
|
## Maintainers
|
|
43
26
|
|
|
44
27
|
- [Arie Trouw](https://github.com/arietrouw) ([arietrouw.com](https://arietrouw.com))
|
|
45
|
-
- [Joel Carter](https://github.com/JoelBCarter)
|
|
46
28
|
- [Matt Jones](https://github.com/jonesmac)
|
|
29
|
+
- [Joel Carter](https://github.com/JoelBCarter)
|
|
47
30
|
- [Jordan Trouw](https://github.com/jordantrouw)
|
|
48
31
|
|
|
49
32
|
## License
|
|
50
33
|
|
|
51
|
-
See the [LICENSE](LICENSE) file for license details
|
|
34
|
+
> See the [LICENSE](LICENSE) file for license details
|
|
52
35
|
|
|
53
36
|
## Credits
|
|
54
37
|
|
|
55
|
-
[Made with π₯and βοΈ by
|
|
38
|
+
[Made with π₯ and βοΈ by XYLabs](https://xylabs.com)
|
|
56
39
|
|
|
57
40
|
[logo]: https://cdn.xy.company/img/brand/XYPersistentCompany_Logo_Icon_Colored.svg
|
|
58
41
|
|
|
59
|
-
[
|
|
60
|
-
[
|
|
61
|
-
|
|
62
|
-
[npm-
|
|
63
|
-
[
|
|
64
|
-
|
|
65
|
-
[
|
|
66
|
-
[
|
|
67
|
-
|
|
68
|
-
[
|
|
69
|
-
|
|
42
|
+
[main-build]: https://github.com/xylabs/sdk-js/actions/workflows/build.yml/badge.svg
|
|
43
|
+
[main-build-link]: https://github.com/xylabs/sdk-js/actions/workflows/build.yml
|
|
44
|
+
[npm-badge]: https://img.shields.io/npm/v/@xylabs/vitest-matchers.svg
|
|
45
|
+
[npm-link]: https://www.npmjs.com/package/@xylabs/vitest-matchers
|
|
46
|
+
[codacy-badge]: https://app.codacy.com/project/badge/Grade/c8e15e14f37741c18cfb47ac7245c698
|
|
47
|
+
[codacy-link]: https://www.codacy.com/gh/xylabs/sdk-js/dashboard?utm_source=github.com&utm_medium=referral&utm_content=xylabs/sdk-js&utm_campaign=Badge_Grade
|
|
48
|
+
[codeclimate-badge]: https://api.codeclimate.com/v1/badges/c5eb068f806f0b047ea7/maintainability
|
|
49
|
+
[codeclimate-link]: https://codeclimate.com/github/xylabs/sdk-js/maintainability
|
|
50
|
+
[snyk-badge]: https://snyk.io/test/github/xylabs/sdk-js/badge.svg?targetFile=package.json
|
|
51
|
+
[snyk-link]: https://snyk.io/test/github/xylabs/sdk-js?targetFile=package.json
|
|
52
|
+
|
|
53
|
+
[npm-downloads-badge]: https://img.shields.io/npm/dw/@xylabs/vitest-matchers
|
|
54
|
+
[npm-license-badge]: https://img.shields.io/npm/l/@xylabs/vitest-matchers
|
|
55
|
+
|
|
56
|
+
[jsdelivr-badge]: https://data.jsdelivr.com/v1/package/npm/@xylabs/vitest-matchers/badge
|
|
57
|
+
[jsdelivr-link]: https://www.jsdelivr.com/package/npm/@xylabs/vitest-matchers
|
|
58
|
+
|
|
59
|
+
[socket-badge]: https://socket.dev/api/badge/npm/package/@xylabs/vitest-matchers
|
|
60
|
+
[socket-link]: https://socket.dev/npm/package/@xylabs/vitest-matchers
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface ExpectationResult {
|
|
2
|
+
actual?: unknown;
|
|
3
|
+
expected?: unknown;
|
|
4
|
+
message: () => string;
|
|
5
|
+
pass: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const matchers: {
|
|
8
|
+
toBeArrayOfSize(received: unknown, expectedSize: number): ExpectationResult;
|
|
9
|
+
toBeArray(received: unknown): ExpectationResult;
|
|
10
|
+
toBeOneOf(received: unknown, expected: unknown[]): ExpectationResult;
|
|
11
|
+
toBeNegative(received: number): ExpectationResult;
|
|
12
|
+
toBePositive(received: number): ExpectationResult;
|
|
13
|
+
toBeNumber: (received: unknown) => ExpectationResult;
|
|
14
|
+
toBeFunction: (received: unknown) => ExpectationResult;
|
|
15
|
+
toBeString: (received: unknown) => ExpectationResult;
|
|
16
|
+
toBeObject(received: unknown): ExpectationResult;
|
|
17
|
+
toBeInteger(received: number): ExpectationResult;
|
|
18
|
+
toBeFalse(received: unknown): ExpectationResult;
|
|
19
|
+
toBeTrue(received: unknown): ExpectationResult;
|
|
20
|
+
toContainAllValues(received: unknown, expectedValues: unknown[]): {
|
|
21
|
+
pass: boolean;
|
|
22
|
+
message: () => string;
|
|
23
|
+
};
|
|
24
|
+
toContainKey(received: object, key: string): {
|
|
25
|
+
pass: boolean;
|
|
26
|
+
message: () => string;
|
|
27
|
+
};
|
|
28
|
+
toInclude(received: unknown, value: any): {
|
|
29
|
+
pass: boolean;
|
|
30
|
+
message: () => string;
|
|
31
|
+
};
|
|
32
|
+
toIncludeAllMembers(received: unknown[], expected: unknown[]): ExpectationResult;
|
|
33
|
+
toContainAllKeys(received: object, expectedKeys: string[]): ExpectationResult;
|
|
34
|
+
toContainValues(received: object, expectedValues: unknown[]): ExpectationResult;
|
|
35
|
+
toBeEmpty(received: unknown): ExpectationResult;
|
|
36
|
+
toBeValidDate(received: unknown): {
|
|
37
|
+
pass: boolean;
|
|
38
|
+
message: () => string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=customMatchers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customMatchers.d.ts","sourceRoot":"","sources":["../../src/customMatchers.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,MAAM,MAAM,CAAA;IACrB,IAAI,EAAE,OAAO,CAAA;CACd;AAeD,eAAO,MAAM,QAAQ;8BACO,OAAO,gBAAgB,MAAM,GAAG,iBAAiB;wBAcvD,OAAO,GAAG,iBAAiB;wBAY3B,OAAO,YAAY,OAAO,EAAE,GAAG,iBAAiB;2BAc7C,MAAM,GAAG,iBAAiB;2BAkB1B,MAAM,GAAG,iBAAiB;2BAkB1B,OAAO;6BACL,OAAO;2BACT,OAAO;yBACT,OAAO,GAAG,iBAAiB;0BAY1B,MAAM,GAAG,iBAAiB;wBAkB5B,OAAO,GAAG,iBAAiB;uBAY5B,OAAO,GAAG,iBAAiB;iCAYjB,OAAO,kBAAkB,OAAO,EAAE;;;;2BA0BxC,MAAM,OAAO,MAAM;;;;wBAatB,OAAO,SAAS,GAAG;;;;kCAqBT,OAAO,EAAE,YAAY,OAAO,EAAE,GAAG,iBAAiB;+BAwBrD,MAAM,gBAAgB,MAAM,EAAE,GAAG,iBAAiB;8BA+BnD,MAAM,kBAAkB,OAAO,EAAE,GAAG,iBAAiB;wBAgD3D,OAAO,GAAG,iBAAiB;4BA8BnC,OAAO;;;;CAapB,CAAA"}
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,43 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
expected?: unknown;
|
|
4
|
-
message: () => string;
|
|
5
|
-
pass: boolean;
|
|
6
|
-
}
|
|
7
|
-
declare const matchers: {
|
|
8
|
-
toBeArrayOfSize(received: unknown, expectedSize: number): ExpectationResult;
|
|
9
|
-
toBeArray(received: unknown): ExpectationResult;
|
|
10
|
-
toBeOneOf(received: unknown, expected: unknown[]): ExpectationResult;
|
|
11
|
-
toBeNegative(received: number): ExpectationResult;
|
|
12
|
-
toBePositive(received: number): ExpectationResult;
|
|
13
|
-
toBeNumber: (received: unknown) => ExpectationResult;
|
|
14
|
-
toBeFunction: (received: unknown) => ExpectationResult;
|
|
15
|
-
toBeString: (received: unknown) => ExpectationResult;
|
|
16
|
-
toBeObject(received: unknown): ExpectationResult;
|
|
17
|
-
toBeInteger(received: number): ExpectationResult;
|
|
18
|
-
toBeFalse(received: unknown): ExpectationResult;
|
|
19
|
-
toBeTrue(received: unknown): ExpectationResult;
|
|
20
|
-
toContainAllValues(received: unknown, expectedValues: unknown[]): {
|
|
21
|
-
pass: boolean;
|
|
22
|
-
message: () => string;
|
|
23
|
-
};
|
|
24
|
-
toContainKey(received: object, key: string): {
|
|
25
|
-
pass: boolean;
|
|
26
|
-
message: () => string;
|
|
27
|
-
};
|
|
28
|
-
toInclude(received: unknown, value: any): {
|
|
29
|
-
pass: boolean;
|
|
30
|
-
message: () => string;
|
|
31
|
-
};
|
|
32
|
-
toIncludeAllMembers(received: unknown[], expected: unknown[]): ExpectationResult;
|
|
33
|
-
toContainAllKeys(received: object, expectedKeys: string[]): ExpectationResult;
|
|
34
|
-
toContainValues(received: object, expectedValues: unknown[]): ExpectationResult;
|
|
35
|
-
toBeEmpty(received: unknown): ExpectationResult;
|
|
36
|
-
toBeValidDate(received: unknown): {
|
|
37
|
-
pass: boolean;
|
|
38
|
-
message: () => string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export { matchers };
|
|
43
|
-
export type { ExpectationResult };
|
|
1
|
+
export * from './customMatchers.ts';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xylabs/vitest-matchers",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.16",
|
|
4
4
|
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"log",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"module": "./dist/neutral/index.mjs",
|
|
39
39
|
"types": "./dist/neutral/index.d.ts",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.
|
|
42
|
-
"@xylabs/tsconfig": "^7.0.0-rc.
|
|
41
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.27",
|
|
42
|
+
"@xylabs/tsconfig": "^7.0.0-rc.27",
|
|
43
43
|
"typescript": "^5.8.3"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|