Schalk Neethling
08/05/2022, 7:15 PMNurul
08/08/2022, 9:46 AMSchalk Neethling
08/08/2022, 10:38 AMSchalk Neethling
08/09/2022, 7:32 PMSchalk Neethling
08/13/2022, 7:03 PMnpm install --save-dev jest typescript ts-jest @types/jest
it will install the latest versions of these dependencies. If you now run npm install jest-mock-extended@2.0.4 --save-dev
as stated in the tutorial, I get:
❯ npm install jest-mock-extended@2.0.4 --save-dev
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: prisma-unit-testing@1.0.0
npm ERR! Found: jest@28.1.3
npm ERR! node_modules/jest
npm ERR! dev jest@"^28.1.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer jest@"^24.0.0 || ^25.0.0 || ^26.0.0 || ^27.0.0" from jest-mock-extended@2.0.4
npm ERR! node_modules/jest-mock-extended
npm ERR! dev jest-mock-extended@"2.0.4" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/schalkneethling/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/schalkneethling/.npm/_logs/2022-08-13T18_58_03_126Z-debug-0.log
Schalk Neethling
08/13/2022, 7:25 PMPrismaClient
but there has been no instructions to install the client. For example here it does clearly explain to do so: https://www.prisma.io/docs/getting-started/setup-prisma/add-to-existing-project/mongodb/install-prisma-client-typescript-mongodbSchalk Neethling
08/13/2022, 7:49 PMSchalk Neethling
08/14/2022, 11:05 AMSchalk Neethling
08/14/2022, 3:50 PMNurul
08/30/2022, 11:53 AMSchalk Neethling
08/30/2022, 1:08 PM