Component testing does not honour configuration values provided by plugins.
See original GitHub issueCurrent behavior
In Cypress ^6.8.0
it was possible to configure component testing using a plugin file by modifying the received configuration. Since the release of 7 this is no longer possible and requires you to configure component testing
in the cypress.json
file instead.
Desired behavior
It should honour the plugin overrides.
Test code to reproduce
The Cypress.json that is now required, (this was empty on 6.8.0)
{
"component": {
"componentFolder": ".",
"fixturesFolder": false,
"ignoreTestFiles": "**/node_modules/**",
"testFiles": "**/*.cypress.js"
}
}
The previous configuration merged in a plugin file:
module.exports = function (on, base) {
const config = require('deepmerge')(base, {
testFiles: '**/*.cypress.js',
integrationFolder: 'cypress',
ignoreTestFiles: '**/node_modules/**',
experimentalComponentTesting: true,
});
return config;
}
Packages:
-cypress
: ^7.2.0
-@cypress/react
: ^5.4.2
-@cypress/webpack-dev-server
: ^1.1.6
Environment: -Node.js: v12.9.0 -NPM: 6.10.2
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Platform UI/Component Area Testing - Eclipsepedia
The following lists items to test for each of the component areas in Platform UI. Please check out areas each of us are...
Read more >Java: How to run component tests with code coverage, using ...
Figure 1: the guides finished solution. Start by unit testing business functionality, collecting code coverage.
Read more >Changelog - Cypress Documentation
Fixed an issue with Angular Component Testing where urls within SASS/SCSS files were not being correctly resolved which could result in incomplete styling....
Read more >Maven Surefire Plugin – Inclusions and Exclusions of Tests
There are certain times when some tests are causing the build to fail. Excluding them is one of the best workarounds to continue...
Read more >Testing in Java & JVM projects - Gradle User Manual
But first, let's look at the basics of JVM testing in Gradle. A new configuration DSL for modeling test execution phases is available...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok, I fixed it: https://github.com/cypress-io/cypress/pull/16468
Released in
7.4.0
.This comment thread has been locked. If you are still experiencing this issue after upgrading to Cypress v7.4.0, please open a new issue.