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' });