mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(api): stop generating prisma client during tests (#51794)
This commit is contained in:
committed by
GitHub
parent
2558156282
commit
2a34960415
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user