Osamu
Osamu
PPrisma
Created by Osamu on 12/17/2024 in #help-and-questions
Mocking prisma client with javascript
Thank you
13 replies
PPrisma
Created by Osamu on 12/17/2024 in #help-and-questions
Mocking prisma client with javascript
/home/mohammad/Desktop/ALX/HealthVault/tests/patient.test.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import PatientController from "../controllers/PatientController"
^^^^^^

SyntaxError: Cannot use import statement outside a module

at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
/home/mohammad/Desktop/ALX/HealthVault/tests/patient.test.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import PatientController from "../controllers/PatientController"
^^^^^^

SyntaxError: Cannot use import statement outside a module

at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
I'm trying to use es6
13 replies
PPrisma
Created by Osamu on 12/17/2024 in #help-and-questions
Mocking prisma client with javascript
I've tried to implement it I kept getting problem related to ES6 I couldn't mock the prisma client sadly
13 replies
PPrisma
Created by Osamu on 12/17/2024 in #help-and-questions
Mocking prisma client with javascript
Pardon but it should work with es6 right? Or does it need more configuration?
13 replies
PPrisma
Created by Osamu on 12/17/2024 in #help-and-questions
Mocking prisma client with javascript
That's actually pretty cool thanks man I hope this gets into the documentation soon
13 replies