question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Component testing does not honour configuration values provided by plugins.

See original GitHub issue

Current 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:closed
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lmiller1990commented, May 12, 2021
0reactions
cypress-bot[bot]commented, May 24, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found