fix(api): stop generating prisma client during tests (#51794)

This commit is contained in:
Oliver Eyton-Williams
2023-10-06 17:44:27 +02:00
committed by GitHub
parent 2558156282
commit 2a34960415
+1 -1
View File
@@ -21,7 +21,7 @@ const isTest = (workerId: string | undefined): workerId is string =>
const prismaPlugin: FastifyPluginAsync = fp(async (server, _options) => {
if (isTest(process.env.JEST_WORKER_ID)) {
// push the schema to the test db to setup indexes, unique constraints, etc
execSync('pnpm prisma db push', {
execSync('pnpm prisma db push -- --skip-generate', {
env: {
...process.env,
MONGOHQ_URL: createTestConnectionURL(