-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathcypress.config.ts
38 lines (35 loc) · 1.06 KB
/
cypress.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* eslint-disable @typescript-eslint/no-namespace */
import { defineConfig } from 'cypress'
declare global {
namespace NodeJS {
interface ProcessEnv {
AUTH0_DOMAIN: string
AUTH0_USERNAME: string
AUTH0_PASSWORD: string
}
}
}
const config = defineConfig({
projectId: 'brkojt',
e2e: {
env: {
AUTH0_DOMAIN: process.env.AUTH0_DOMAIN,
AUTH0_USERNAME: process.env.AUTH0_USERNAME,
AUTH0_PASSWORD: process.env.AUTH0_PASSWORD
},
setupNodeEvents() { },
// Path to e2e specs folder
specPattern: './test/cypress/e2e/**/*.cy.{js,jsx,ts,tsx}',
// Path to the fake data
fixturesFolder: './test/fake_data',
supportFile: './test/cypress/support/e2e.ts',
baseUrl: 'http://localhost:3000',
testIsolation: false,
experimentalRunAllSpecs: true,
requestTimeout: 10000,
responseTimeout: 30000,
pageLoadTimeout: 60000,
defaultCommandTimeout: 10000
}
})
export default config