tstyche 7.0.0 → 7.2.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 +22 -18
- package/dist/api.d.ts +29 -22
- package/dist/api.js +577 -838
- package/dist/index.cjs +0 -1
- package/dist/index.d.cts +2 -23
- package/dist/index.d.ts +2 -23
- package/dist/index.js +1 -1
- package/package.json +7 -3
- package/schemas/config.json +2 -2
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -100,7 +100,7 @@ interface Matchers {
|
|
|
100
100
|
/**
|
|
101
101
|
* Checks if the type raises an error.
|
|
102
102
|
*
|
|
103
|
-
* @deprecated This
|
|
103
|
+
* @deprecated This API is planned to be removed. For a replacement, see https://tstyche.org/guides/expect-errors.
|
|
104
104
|
*/
|
|
105
105
|
toRaiseError: (...target: Array<string | number | RegExp>) => void;
|
|
106
106
|
}
|
|
@@ -183,23 +183,6 @@ interface Test {
|
|
|
183
183
|
todo: (name: string, callback?: () => void | Promise<void>) => void;
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
interface Actions {
|
|
187
|
-
/**
|
|
188
|
-
* Calls the given function with the provided arguments.
|
|
189
|
-
*/
|
|
190
|
-
isCalledWith: (...args: Array<unknown>) => void;
|
|
191
|
-
}
|
|
192
|
-
interface When {
|
|
193
|
-
/**
|
|
194
|
-
* Creates a test plan.
|
|
195
|
-
*/
|
|
196
|
-
<T>(): Actions;
|
|
197
|
-
/**
|
|
198
|
-
* Creates a test plan.
|
|
199
|
-
*/
|
|
200
|
-
(target: unknown): Actions;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
186
|
/**
|
|
204
187
|
* The fill-in type. Useful to fill in the required type arguments of generic types.
|
|
205
188
|
*/
|
|
@@ -228,10 +211,6 @@ declare const it: Test;
|
|
|
228
211
|
* Defines a single test.
|
|
229
212
|
*/
|
|
230
213
|
declare const test: Test;
|
|
231
|
-
/**
|
|
232
|
-
* Creates a test plan.
|
|
233
|
-
*/
|
|
234
|
-
declare const when: When;
|
|
235
214
|
|
|
236
|
-
export { describe, expect, it, omit, pick, test
|
|
215
|
+
export { describe, expect, it, omit, pick, test };
|
|
237
216
|
export type { _ };
|
package/dist/index.d.ts
CHANGED
|
@@ -100,7 +100,7 @@ interface Matchers {
|
|
|
100
100
|
/**
|
|
101
101
|
* Checks if the type raises an error.
|
|
102
102
|
*
|
|
103
|
-
* @deprecated This
|
|
103
|
+
* @deprecated This API is planned to be removed. For a replacement, see https://tstyche.org/guides/expect-errors.
|
|
104
104
|
*/
|
|
105
105
|
toRaiseError: (...target: Array<string | number | RegExp>) => void;
|
|
106
106
|
}
|
|
@@ -183,23 +183,6 @@ interface Test {
|
|
|
183
183
|
todo: (name: string, callback?: () => void | Promise<void>) => void;
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
interface Actions {
|
|
187
|
-
/**
|
|
188
|
-
* Calls the given function with the provided arguments.
|
|
189
|
-
*/
|
|
190
|
-
isCalledWith: (...args: Array<unknown>) => void;
|
|
191
|
-
}
|
|
192
|
-
interface When {
|
|
193
|
-
/**
|
|
194
|
-
* Creates a test plan.
|
|
195
|
-
*/
|
|
196
|
-
<T>(): Actions;
|
|
197
|
-
/**
|
|
198
|
-
* Creates a test plan.
|
|
199
|
-
*/
|
|
200
|
-
(target: unknown): Actions;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
186
|
/**
|
|
204
187
|
* The fill-in type. Useful to fill in the required type arguments of generic types.
|
|
205
188
|
*/
|
|
@@ -228,10 +211,6 @@ declare const it: Test;
|
|
|
228
211
|
* Defines a single test.
|
|
229
212
|
*/
|
|
230
213
|
declare const test: Test;
|
|
231
|
-
/**
|
|
232
|
-
* Creates a test plan.
|
|
233
|
-
*/
|
|
234
|
-
declare const when: When;
|
|
235
214
|
|
|
236
|
-
export { describe, expect, it, omit, pick, test
|
|
215
|
+
export { describe, expect, it, omit, pick, test };
|
|
237
216
|
export type { _ };
|
package/dist/index.js
CHANGED
|
@@ -9,4 +9,4 @@ const noopChain = new Proxy(noop, {
|
|
|
9
9
|
},
|
|
10
10
|
});
|
|
11
11
|
|
|
12
|
-
export { noopChain as describe, noopChain as expect, noopChain as it, noop as omit, noop as pick, noopChain as test
|
|
12
|
+
export { noopChain as describe, noopChain as expect, noopChain as it, noop as omit, noop as pick, noopChain as test };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tstyche",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"description": "Everything You Need for Type Testing.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -32,6 +32,10 @@
|
|
|
32
32
|
"main": "./dist/index.js",
|
|
33
33
|
"types": "./dist/index.d.ts",
|
|
34
34
|
"bin": "./dist/bin.js",
|
|
35
|
+
"files": [
|
|
36
|
+
"dist/**/*",
|
|
37
|
+
"schemas/*.json"
|
|
38
|
+
],
|
|
35
39
|
"peerDependencies": {
|
|
36
40
|
"typescript": ">=5.4"
|
|
37
41
|
},
|
|
@@ -41,6 +45,6 @@
|
|
|
41
45
|
}
|
|
42
46
|
},
|
|
43
47
|
"engines": {
|
|
44
|
-
"node": ">=22
|
|
48
|
+
"node": ">=22"
|
|
45
49
|
}
|
|
46
|
-
}
|
|
50
|
+
}
|
package/schemas/config.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"type": "boolean"
|
|
9
9
|
},
|
|
10
10
|
"checkSuppressedErrors": {
|
|
11
|
-
"description": "Check errors
|
|
11
|
+
"description": "Check errors suppressed by '@ts-expect-error' directives.",
|
|
12
12
|
"default": true,
|
|
13
13
|
"type": "boolean"
|
|
14
14
|
},
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"target": {
|
|
60
|
-
"description": "The range of
|
|
60
|
+
"description": "The TypeScript version or range of versions to test against.",
|
|
61
61
|
"default": "*",
|
|
62
62
|
"type": "string"
|
|
63
63
|
},
|