edit cypress.config to include code-coverage

This commit is contained in:
Kenny628 2023-08-26 15:28:26 +08:00
parent 0d91da6bbf
commit d856de30e1
1 changed files with 8 additions and 0 deletions

View File

@ -13,5 +13,13 @@ export default defineConfig({
framework: 'vue',
bundler: 'vite',
},
setupNodeEvents(on, config) {
require('@cypress/code-coverage/task')(on, config)
// include any other plugin code...
// It's IMPORTANT to return the config object
// with any changed environment variables
return config
}
},
})