From 6652c88ce673d0413c5a303b88ade1b4eea732ea Mon Sep 17 00:00:00 2001 From: gc <30398469+gc@users.noreply.github.com> Date: Wed, 3 Jul 2024 11:28:07 +1000 Subject: [PATCH] fixes --- src/scripts/integration-tests.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripts/integration-tests.ts b/src/scripts/integration-tests.ts index a064a5b2da..b301f51608 100644 --- a/src/scripts/integration-tests.ts +++ b/src/scripts/integration-tests.ts @@ -11,10 +11,10 @@ async function main() { await sleep(2000); console.log('Getting ready...'); - const env = config({ path: path.resolve('.env.test') }); + const env = { ...process.env, ...config({ path: path.resolve('.env.test') }) }; - execSync('prisma db push --schema="./prisma/schema.prisma"', { stdio: 'inherit', env: env.parsed }); - execSync('prisma db push --schema="./prisma/robochimp.prisma"', { stdio: 'inherit', env: env.parsed }); + execSync('npx prisma db push --schema="./prisma/schema.prisma"', { stdio: 'inherit', env: env.parsed }); + execSync('npx prisma db push --schema="./prisma/robochimp.prisma"', { stdio: 'inherit', env: env.parsed }); console.log('Building...'); execSync('yarn build', { stdio: 'inherit' });