@clipboard-health/testing-core 0.9.1 → 0.10.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/README.md +5 -10
- package/package.json +2 -5
package/README.md
CHANGED
|
@@ -36,8 +36,7 @@ This library's helpers narrow types:
|
|
|
36
36
|
|
|
37
37
|
<!-- prettier-ignore -->
|
|
38
38
|
```ts
|
|
39
|
-
//
|
|
40
|
-
|
|
39
|
+
// packages/testing-core/examples/expectToBeDefined.ts
|
|
41
40
|
import { ok } from "node:assert/strict";
|
|
42
41
|
|
|
43
42
|
import { expectToBeDefined } from "@clipboard-health/testing-core";
|
|
@@ -57,8 +56,7 @@ ok(length === 2);
|
|
|
57
56
|
|
|
58
57
|
<!-- prettier-ignore -->
|
|
59
58
|
```ts
|
|
60
|
-
//
|
|
61
|
-
|
|
59
|
+
// packages/testing-core/examples/expectToBeLeft.ts
|
|
62
60
|
import { ok } from "node:assert/strict";
|
|
63
61
|
|
|
64
62
|
import { expectToBeLeft } from "@clipboard-health/testing-core";
|
|
@@ -82,8 +80,7 @@ ok(value.left === "Cannot divide by zero");
|
|
|
82
80
|
|
|
83
81
|
<!-- prettier-ignore -->
|
|
84
82
|
```ts
|
|
85
|
-
//
|
|
86
|
-
|
|
83
|
+
// packages/testing-core/examples/expectToBeRight.ts
|
|
87
84
|
import { ok } from "node:assert/strict";
|
|
88
85
|
|
|
89
86
|
import { expectToBeRight } from "@clipboard-health/testing-core";
|
|
@@ -107,8 +104,7 @@ ok(value.right === 5);
|
|
|
107
104
|
|
|
108
105
|
<!-- prettier-ignore -->
|
|
109
106
|
```ts
|
|
110
|
-
//
|
|
111
|
-
|
|
107
|
+
// packages/testing-core/examples/expectToBeSafeParseError.ts
|
|
112
108
|
import { ok } from "node:assert/strict";
|
|
113
109
|
|
|
114
110
|
import { expectToBeDefined, expectToBeSafeParseError } from "@clipboard-health/testing-core";
|
|
@@ -130,8 +126,7 @@ ok(firstIssue.message === "Expected string, received number");
|
|
|
130
126
|
|
|
131
127
|
<!-- prettier-ignore -->
|
|
132
128
|
```ts
|
|
133
|
-
//
|
|
134
|
-
|
|
129
|
+
// packages/testing-core/examples/expectToBeSafeParseSuccess.ts
|
|
135
130
|
import { ok } from "node:assert/strict";
|
|
136
131
|
|
|
137
132
|
import { expectToBeSafeParseSuccess } from "@clipboard-health/testing-core";
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clipboard-health/testing-core",
|
|
3
3
|
"description": "TypeScript-friendly testing utilities.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.0",
|
|
5
5
|
"bugs": "https://github.com/ClipboardHealth/core-utils/issues",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@clipboard-health/util-ts": "2.
|
|
7
|
+
"@clipboard-health/util-ts": "2.13.0",
|
|
8
8
|
"tslib": "2.8.0",
|
|
9
9
|
"zod": "3.23.8"
|
|
10
10
|
},
|
|
@@ -23,9 +23,6 @@
|
|
|
23
23
|
"type": "git",
|
|
24
24
|
"url": "git+https://github.com/ClipboardHealth/core-utils.git"
|
|
25
25
|
},
|
|
26
|
-
"scripts": {
|
|
27
|
-
"embed": "embedme README.md"
|
|
28
|
-
},
|
|
29
26
|
"type": "commonjs",
|
|
30
27
|
"typings": "./src/index.d.ts",
|
|
31
28
|
"types": "./src/index.d.ts"
|