prisma-mock 1.0.0-alpha.7 → 1.0.0-alpha.8

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/client.js +1 -1
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -77,7 +77,7 @@ function createPrismaMock(prisma, options = {
77
77
  // Create delegate functions for model operations
78
78
  const Delegate = (0, delegate_1.createDelegate)({ ref, prisma, datamodel: options.datamodel, caseInsensitive, indexes });
79
79
  // Initialize each model in the datamodel
80
- prisma.dmmf.datamodel.models.forEach((model) => {
80
+ options.datamodel.models.forEach((model) => {
81
81
  if (!model)
82
82
  return;
83
83
  // Convert model name to camelCase for consistency
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prisma-mock",
3
- "version": "1.0.0-alpha.7",
3
+ "version": "1.0.0-alpha.8",
4
4
  "description": "Mock prisma for unit testing database",
5
5
  "main": "lib/index.js",
6
6
  "repository": {