Hello. I just joined. I am a newbie at my first jo...
# random
s
Hello. I just joined. I am a newbie at my first job, 3rd day only. I am trying to mock the prisma client we use with hapi. I following the documentation but every query is returning undefined sadparrot . We are using typescript, hapi JS and postgres. my tsconfig.json
Copy code
{
  "compilerOptions": {
    "sourceMap": true,
    "rootDir": "./",
    "baseUrl": "./",
    "outDir": "dist",
    "target": "ES2018",
    "module": "commonjs",
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "lib": [
      "esnext",
      "DOM"
    ],
    "esModuleInterop": true,
    "paths": {
      "*": [
        "*",
        "./src/declarations/*"
      ],
      "#src/*": [
        "./src/*"
      ],
      "#routes/*": [
        "./src/routes/*"
      ]
    }
  },
  "exclude": [
    "dist",
    "node_modules"
  ],
  "skipLibCheck": true,
  "strictNullChecks": true
}
I love prisma though, huge fan.