aboutsummaryrefslogtreecommitdiffstats
path: root/cypress.config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cypress.config.ts')
-rw-r--r--cypress.config.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/cypress.config.ts b/cypress.config.ts
new file mode 100644
index 0000000..eaaac80
--- /dev/null
+++ b/cypress.config.ts
@@ -0,0 +1,23 @@
+import { defineConfig } from 'cypress';
+import dotenv from 'dotenv';
+import dotenvExpand from 'dotenv-expand';
+
+const loadedEnv = dotenv.config();
+dotenvExpand.expand(loadedEnv);
+
+export default defineConfig({
+ downloadsFolder: 'tests/cypress/downloads',
+ fixturesFolder: 'tests/cypress/fixtures',
+ screenshotsFolder: 'tests/cypress/screenshots',
+ supportFolder: 'tests/cypress/support',
+ videosFolder: 'tests/cypress/videos',
+ e2e: {
+ baseUrl: 'http://localhost:3000',
+ specPattern: '**/*.cy.{js,jsx,ts,tsx}',
+ supportFile: 'tests/cypress/support/e2e.ts',
+ },
+ env: {
+ NEXT_PUBLIC_STAGING_GRAPHQL_API:
+ process.env.NEXT_PUBLIC_STAGING_GRAPHQL_API ?? '',
+ },
+});