0

I have a project with angular 15, nx, cypress and badeball/cypress-cucumber-preprocessor. I've written e2e tests using gherkin syntax. Now I'm trying to make it work for component-tests. How do I do that?

I saw some discussions in 4 other tickets in badeball/cypress-cucumber-preprocessor repository regarding component-tests. But I haven't found any single example of how to configure component-tests to use badeball/cypress-cucumber-preprocessor library at all.

I've created a library with a component. It has already plain cypress component-tests configured. It uses cypress.config.ts and tsconfig.json files for configuration. I've already managed to run gherkin with badeball/cypress-cucumber-preprocessor library for e2e tests of an app using this example of cypress.config.ts from docs. But component-tests have different structure of configuration object in cypress.config.ts. How do I make it work? Is there an example of this somewhere out there that exists and I didn't find? Or probably someone could help me here to configure it?

Exact versions: "@nrwl/angular": "15.5.2", "nx": "15.5.2", "@nrwl/cypress": "15.5.2", "@badeball/cypress-cucumber-preprocessor": "^15.1.5"

0 Answers0