generated from aws-samples/amplify-vite-react-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcypress.config.ts
39 lines (35 loc) · 1.09 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
39
import { defineConfig } from "cypress";
export default defineConfig({
projectId: "avaelus",
retries: {
runMode: 2,
},
env: {
coverage: false,
codeCoverage: {
url: "http://localhost:3001/__coverage__",
exclude: "cypress/**/*.*",
},
defaultPassword: process.env.SEED_DEFAULT_USER_PASSWORD,
paginationPageSize: process.env.PAGINATION_PAGE_SIZE,
// Amazon Cognito
cognito_username: process.env.AWS_COGNITO_USERNAME,
cognito_password: process.env.AWS_COGNITO_PASSWORD,
cognito_domain: process.env.AWS_COGNITO_DOMAIN,
cognito_programmatic_login: false,
// awsConfig: awsConfig.default,
// Google
googleRefreshToken: process.env.GOOGLE_REFRESH_TOKEN,
googleClientId: process.env.VITE_GOOGLE_CLIENTID,
googleClientSecret: process.env.VITE_GOOGLE_CLIENT_SECRET,
},
e2e: {
baseUrl: "http://localhost:5173",
specPattern: "cypress/tests/**/*.spec.{js,jsx,ts,tsx}",
supportFile: "cypress/support/e2e.ts",
viewportHeight: 1000,
viewportWidth: 1280,
experimentalRunAllSpecs: true,
setupNodeEvents() {},
},
});