prisma-mock 1.0.0-alpha.6 → 1.0.0-alpha.7
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.js +1 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -16,7 +16,7 @@ const fieldHelpers_1 = require("./utils/fieldHelpers");
|
|
|
16
16
|
// - mockClient: Optionally provide your own mock client (jest-mock-extended or vitest-mock-extended) instance to use.
|
|
17
17
|
// @returns A mock Prisma client with all model methods and access to internal state.
|
|
18
18
|
function createPrismaMock(prisma, options = {
|
|
19
|
-
datamodel: prisma.dmmf
|
|
19
|
+
datamodel: prisma.dmmf?.datamodel,
|
|
20
20
|
caseInsensitive: false,
|
|
21
21
|
enableIndexes: false,
|
|
22
22
|
data: {}
|