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/dist/index.cjs CHANGED
@@ -17,4 +17,3 @@ exports.it = noopChain;
17
17
  exports.omit = noop;
18
18
  exports.pick = noop;
19
19
  exports.test = noopChain;
20
- exports.when = noopChain;
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 matcher is planned to be removed. For a replacement, see https://tstyche.org/guides/expect-errors.
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, when };
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 matcher is planned to be removed. For a replacement, see https://tstyche.org/guides/expect-errors.
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, when };
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, noopChain as when };
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.0.0",
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.12"
48
+ "node": ">=22"
45
49
  }
46
- }
50
+ }
@@ -8,7 +8,7 @@
8
8
  "type": "boolean"
9
9
  },
10
10
  "checkSuppressedErrors": {
11
- "description": "Check errors silenced by '@ts-expect-error' directives.",
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 TypeScript versions to test against.",
60
+ "description": "The TypeScript version or range of versions to test against.",
61
61
  "default": "*",
62
62
  "type": "string"
63
63
  },