2023-08-28 04:52:26 +12:00
|
|
|
import registerCodeCoverageTasks from '@cypress/code-coverage/task'
|
|
|
|
import { injectQuasarDevServerConfig } from '@quasar/quasar-app-extension-testing-e2e-cypress/cct-dev-server'
|
|
|
|
import { defineConfig } from 'cypress'
|
2023-08-25 08:40:07 +12:00
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
fixturesFolder: 'test/cypress/fixtures',
|
|
|
|
screenshotsFolder: 'test/cypress/screenshots',
|
|
|
|
videosFolder: 'test/cypress/videos',
|
|
|
|
video: true,
|
|
|
|
e2e: {
|
2023-08-28 04:52:26 +12:00
|
|
|
setupNodeEvents (on, config) {
|
|
|
|
registerCodeCoverageTasks(on, config)
|
|
|
|
return config
|
2023-08-25 08:40:07 +12:00
|
|
|
},
|
|
|
|
baseUrl: 'http://localhost:9000/',
|
|
|
|
supportFile: 'test/cypress/support/e2e.ts',
|
2023-08-28 04:52:26 +12:00
|
|
|
specPattern: 'test/cypress/e2e/**/*.cy.{js,jsx,ts,tsx}'
|
2023-08-25 08:40:07 +12:00
|
|
|
},
|
|
|
|
component: {
|
2023-08-28 04:52:26 +12:00
|
|
|
setupNodeEvents (on, config) {
|
|
|
|
registerCodeCoverageTasks(on, config)
|
|
|
|
return config
|
2023-08-25 08:40:07 +12:00
|
|
|
},
|
|
|
|
supportFile: 'test/cypress/support/component.ts',
|
2023-08-29 10:05:58 +12:00
|
|
|
specPattern: 'src/**/*.cy.test.{js,jsx,ts,tsx}',
|
2023-08-25 08:40:07 +12:00
|
|
|
indexHtmlFile: 'test/cypress/support/component-index.html',
|
2023-08-28 04:52:26 +12:00
|
|
|
devServer: injectQuasarDevServerConfig()
|
|
|
|
}
|
|
|
|
})
|