bun-types-no-globals 1.2.23-canary.20250922T140710 → 1.2.23-canary.20250923T140639

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.
Files changed (2) hide show
  1. package/lib/test.d.ts +5 -1
  2. package/package.json +1 -1
package/lib/test.d.ts CHANGED
@@ -91,6 +91,7 @@ declare module "bun:test" {
91
91
  export namespace jest {
92
92
  function restoreAllMocks(): void;
93
93
  function clearAllMocks(): void;
94
+ function resetAllMocks(): void;
94
95
  function fn<T extends (...args: any[]) => any>(func?: T): Mock<T>;
95
96
  function setSystemTime(now?: number | Date): void;
96
97
  function setTimeout(milliseconds: number): void;
@@ -180,6 +181,9 @@ declare module "bun:test" {
180
181
  * Clear all mock state (calls, results, etc.) without restoring original implementation
181
182
  */
182
183
  clearAllMocks: typeof jest.clearAllMocks;
184
+ resetAllMocks: typeof jest.resetAllMocks;
185
+ useFakeTimers: typeof jest.useFakeTimers;
186
+ useRealTimers: typeof jest.useRealTimers;
183
187
  };
184
188
 
185
189
  interface FunctionLike {
@@ -423,7 +427,7 @@ declare module "bun:test" {
423
427
  options?: number | TestOptions,
424
428
  ): void;
425
429
  /**
426
- * Skips all other tests, except this test when run with the `--only` option.
430
+ * Skips all other tests, except this test.
427
431
  */
428
432
  only: Test<T>;
429
433
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bun-types-no-globals",
3
- "version": "1.2.23-canary.20250922T140710",
3
+ "version": "1.2.23-canary.20250923T140639",
4
4
  "main": "./generator/index.ts",
5
5
  "types": "./lib/index.d.ts",
6
6
  "description": "TypeScript type definitions for Bun without global types pollution",