2020-02-21 08:34:55 +00:00
|
|
|
// This function is called when a project is opened or re-opened (e.g. due to
|
|
|
|
// the project's config changing)
|
|
|
|
|
|
|
|
import codeCoverageTask from '@cypress/code-coverage/task.js';
|
|
|
|
|
|
|
|
export default (on, config) => {
|
|
|
|
// `on` is used to hook into various events Cypress emits
|
|
|
|
// `config` is the resolved Cypress config
|
|
|
|
|
|
|
|
// `on` is used to hook into various events Cypress emits
|
|
|
|
// `config` is the resolved Cypress config
|
|
|
|
|
|
|
|
// https://docs.cypress.io/guides/tooling/code-coverage.html#Install-the-plugin
|
2020-04-12 02:45:03 +00:00
|
|
|
codeCoverageTask(on, config);
|
|
|
|
return config;
|
2020-02-21 08:34:55 +00:00
|
|
|
};
|