prisma-mock 1.1.0-alpha.0 → 1.1.0-alpha.1

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/lib/client.d.ts CHANGED
@@ -2,5 +2,6 @@ import type { Prisma, PrismaClient } from "@prisma/client";
2
2
  import { MockPrismaOptions, PrismaMockData } from "./types";
3
3
  declare function createPrismaMock<PClient extends PrismaClient, P extends typeof Prisma = typeof Prisma>(prisma: P, options?: MockPrismaOptions<PClient, P>): PClient & {
4
4
  $getInternalState: () => Required<PrismaMockData<PClient>>;
5
+ $clear: () => void;
5
6
  };
6
7
  export default createPrismaMock;
package/lib/index.d.ts CHANGED
@@ -5,5 +5,6 @@ type MockPrismaOptions<P extends PrismaClient = PrismaClient> = Omit<MockPrismaO
5
5
  };
6
6
  export default function createPrismaClient<P extends PrismaClient = PrismaClient>(options?: MockPrismaOptions<P>): P & {
7
7
  $getInternalState: () => Required<Partial<{ [key in import("./types").IsTable<Uncapitalize<import("./types").IsString<keyof P>>>]: import("./types").PrismaList<P, key>; }>>;
8
+ $clear: () => void;
8
9
  };
9
10
  export {};
package/lib/legacy.d.ts CHANGED
@@ -73,4 +73,5 @@ export default function createPrismaClient(data?: PrismaMockData<PrismaClient>,
73
73
  id: string;
74
74
  }>[];
75
75
  }>>;
76
+ $clear: () => void;
76
77
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prisma-mock",
3
- "version": "1.1.0-alpha.0",
3
+ "version": "1.1.0-alpha.1",
4
4
  "description": "Mock prisma for unit testing database",
5
5
  "main": "lib/index.js",
6
6
  "repository": {