Salman Shaikh
08/23/2022, 1:32 PMRaphael Etim
08/23/2022, 1:34 PMSalman Shaikh
08/23/2022, 1:42 PMSalman Shaikh
08/23/2022, 2:09 PMSalman Shaikh
08/23/2022, 2:10 PMprismaMock.user.
anythingRaphael Etim
08/23/2022, 4:05 PM"strictNullChecks": true
to your tsconfig.json
file?Salman Shaikh
08/23/2022, 4:09 PMSalman Shaikh
08/23/2022, 4:09 PMSalman Shaikh
08/23/2022, 4:10 PMDetails:
/Users/salmanshaikh/westfield/one-visitor-api/src/modules/user/̉user.repository.test.ts:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import { create } from './user.repository.js';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at Runtime.createScriptFromCode (../node_modules/jest-runtime/build/index.js:1796:14)
Salman Shaikh
08/23/2022, 4:10 PMRaphael Etim
08/23/2022, 4:13 PMSalman Shaikh
08/23/2022, 4:16 PMRaphael Etim
08/23/2022, 4:18 PMSalman Shaikh
08/23/2022, 4:23 PMtype: module
in my package.json and tsconfigSalman Shaikh
08/24/2022, 12:09 PMts-jest
you guys should add it to the guide I guessSalman Shaikh
08/24/2022, 12:09 PM