-
Notifications
You must be signed in to change notification settings - Fork 0
/
cypress.config.ts
35 lines (32 loc) · 1.1 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
import registerCodeCoverageTasks from "@cypress/code-coverage/task"
import { injectQuasarDevServerConfig } from "@quasar/quasar-app-extension-testing-e2e-cypress/cct-dev-server"
import { defineConfig } from "cypress"
export default defineConfig({
fixturesFolder: "test/cypress/fixtures",
screenshotsFolder: "test/cypress/screenshots",
videosFolder: "test/cypress/videos",
video: true,
e2e: {
setupNodeEvents(on, config) {
config.env.CENTRIFUGO_HOST = process.env.CENTRIFUGO_HOST
return config
},
baseUrl: "http://localhost:9090/",
supportFile: "test/cypress/support/e2e.ts",
specPattern: "test/cypress/e2e/**/*.cy.{js,jsx,ts,tsx}",
viewportHeight: 660,
viewportWidth: 1173,
},
component: {
setupNodeEvents(on, config) {
registerCodeCoverageTasks(on, config)
return config
},
supportFile: "test/cypress/support/component.ts",
specPattern: "src/**/*.cy.{js,jsx,ts,tsx}",
indexHtmlFile: "test/cypress/support/component-index.html",
devServer: injectQuasarDevServerConfig(),
viewportHeight: 660,
viewportWidth: 1000,
},
})