find-cypress-specs icon indicating copy to clipboard operation
find-cypress-specs copied to clipboard

Update badge fails if both `e2e` and `component` are not part of `cypress.config.{js,ts}`

Open samtsai opened this issue 1 year ago • 1 comments

Run: npx find-cypress-specs --test-counts --update-badge

Expected

New badge is created.

Actual

If either e2e or component is missing from cypress.config.ts file then an error will be thrown: Error: Missing "component" object in the Cypress config object

samtsai avatar Feb 07 '24 20:02 samtsai

Can you provide a small reproducible example? And/Or debug logs?

bahmutov avatar Mar 04 '24 21:03 bahmutov