From ec0e8949a41f56e80ee08f2a4dfe2c4ac1c6f91c Mon Sep 17 00:00:00 2001 From: gc <30398469+gc@users.noreply.github.com> Date: Wed, 3 Jul 2024 13:12:42 +1000 Subject: [PATCH] fix --- 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 b301f51608..20ee1208c9 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 = { ...process.env, ...config({ path: path.resolve('.env.test') }) }; + const env = { ...process.env, ...config({ path: path.resolve('.env.test') }).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 }); + execSync('npx prisma db push --schema="./prisma/schema.prisma"', { stdio: 'inherit', env }); + execSync('npx prisma db push --schema="./prisma/robochimp.prisma"', { stdio: 'inherit', env }); console.log('Building...'); execSync('yarn build', { stdio: 'inherit' });