Skip to content

Commit

Permalink
chore(e2e): provide env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
awinogradov committed Aug 9, 2023
1 parent 54d3f99 commit b3475f2
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
export default {
import { defineConfig } from 'cypress';
import * as dotenv from 'dotenv';

dotenv.config();

export default defineConfig({
env: {
ADMIN_EMAIL: process.env.ADMIN_EMAIL,
ADMIN_PASSWORD: process.env.ADMIN_PASSWORD,
},
e2e: {
baseUrl: `http://${process.env.CYPRESS_baseUrl || 'localhost'}:3000`,
baseUrl: 'http://localhost:3000',
supportFile: false,
},
video: false,
};
});

0 comments on commit b3475f2

Please sign in to comment.