find-cypress-specs
find-cypress-specs copied to clipboard
Update badge fails if both `e2e` and `component` are not part of `cypress.config.{js,ts}`
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
Can you provide a small reproducible example? And/Or debug logs?