From ac55e0f38e2b71bb5c71b98f24c500af412404ff Mon Sep 17 00:00:00 2001 From: Dalyan Parker Date: Mon, 13 Sep 2021 18:10:50 +0100 Subject: [PATCH] Add correct import for DeepMockProxy --- content/300-guides/150-testing/100-unit-testing.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/300-guides/150-testing/100-unit-testing.mdx b/content/300-guides/150-testing/100-unit-testing.mdx index 6ee27e2ddd..2a94be3f8a 100644 --- a/content/300-guides/150-testing/100-unit-testing.mdx +++ b/content/300-guides/150-testing/100-unit-testing.mdx @@ -85,7 +85,7 @@ The following steps guide you through mocking the Prisma Client using a singleto ```ts file=singleton.ts import { PrismaClient } from '@prisma/client' import { mockDeep, mockReset } from 'jest-mock-extended' - import { DeepMockProxy } from 'jest-mock-extended/lib/Mock' + import { DeepMockProxy } from 'jest-mock-extended/lib/cjs/Mock' import prisma from './client' @@ -112,7 +112,7 @@ Another popular pattern that can be used is dependency injection. ```ts file=context.ts import { PrismaClient } from '@prisma/client' import { mockDeep } from 'jest-mock-extended' - import { DeepMockProxy } from 'jest-mock-extended/lib/Mock' + import { DeepMockProxy } from 'jest-mock-extended/lib/cjs/Mock' export type Context = { prisma: PrismaClient