mirror of
https://github.com/Elvanos/fantasia-archive.git
synced 2024-05-18 11:13:15 +12:00
30 lines
1,005 B
TypeScript
30 lines
1,005 B
TypeScript
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) {
|
|
registerCodeCoverageTasks(on, config)
|
|
return config
|
|
},
|
|
baseUrl: 'http://localhost:9000/',
|
|
supportFile: 'test/cypress/support/e2e.ts',
|
|
specPattern: 'test/cypress/e2e/**/*.cy.{js,jsx,ts,tsx}'
|
|
},
|
|
component: {
|
|
setupNodeEvents (on, config) {
|
|
registerCodeCoverageTasks(on, config)
|
|
return config
|
|
},
|
|
supportFile: 'test/cypress/support/component.ts',
|
|
specPattern: 'src/**/*.cy.test.{js,jsx,ts,tsx}',
|
|
indexHtmlFile: 'test/cypress/support/component-index.html',
|
|
devServer: injectQuasarDevServerConfig()
|
|
}
|
|
})
|