Skip to content

Commit

Permalink
Skip WonderBlocks tests on WP versions older than 6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
wpalani committed Sep 4, 2024
1 parent 46be3c3 commit 6bd1ab7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ module.exports = defineConfig( {
] );
}

// Exclude WonderBlocks tests for WordPress lower than 6.6 (6.5 or 6.4)
if ( semver.satisfies( config.env.wpSemverVersion, '<6.6.0' ) ) {
config.excludeSpecPattern = config.excludeSpecPattern.concat( [
'vendor/newfold-labs/wp-module-wonderblocks/tests/cypress/integration/**',
] );
}

return config;
},
baseUrl: 'http://localhost:8882',
Expand Down

0 comments on commit 6bd1ab7

Please sign in to comment.