Skip to content

Commit

Permalink
Merge pull request #2527 from aiidtest/fix-conditional-coverage
Browse files Browse the repository at this point in the history
Conditionally load coverage plugin
  • Loading branch information
kepae authored Jan 5, 2024
2 parents f794d50 + e89a106 commit ce13e0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion site/gatsby-site/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ module.exports = defineConfig({
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
require('@cypress/code-coverage/task')(on, config);
if (process.env.INSTRUMENT) {
require('@cypress/code-coverage/task')(on, config);
}

require('./cypress/plugins/index.js')(on, config);

Expand Down

0 comments on commit ce13e0a

Please sign in to comment.