Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for Cypress component testing #620

Open
bicarbon8 opened this issue Jul 3, 2023 · 0 comments
Open

add support for Cypress component testing #620

bicarbon8 opened this issue Jul 3, 2023 · 0 comments

Comments

@bicarbon8
Copy link

bicarbon8 commented Jul 3, 2023

from what I can tell based on the documentation and code it looks like only the e2e tests are being executed. I would like to use BrowserStack when running Cypress Component tests (see: https://docs.cypress.io/guides/component-testing/overview) which locally I can run using npx cypress run --component and by having a cypress.config.js file that looks like:

// cypress.config.js
const { defineConfig } = require('cypress');
const webpackConfig = require('./webpack.config.cjs');

module.exports = defineConfig({
    component: {
        devServer: {
            framework: 'react',
            bundler: 'webpack',
            webpackConfig
        },
        viewportWidth: 800
    }
});

NOTE: e2e test configuration could also exist in the above config file under a e2e key

I would like to be able to use the browserstack-cypress-cli tool to run component tests using a command-line option that indicates that component tests should be run and not e2e tests (it would be nice if there were several options available such as e2e as a default, component and both)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant