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

Problem parsing file #119

Open
danrealednb opened this issue Mar 13, 2023 · 1 comment
Open

Problem parsing file #119

danrealednb opened this issue Mar 13, 2023 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@danrealednb
Copy link

Any spec file that I have (all typescript files. .spec.ts) have tags like so, where the tag is a typescript enum:

import { TAGS } from '../../../support/tags'
describe('Account Detail', { tags: [TAGS.ADMIN] }, () => {})

The tags are an import from a typescript enum.

export enum TAGS {
  SMOKE = '@smoke',
  ADMIN = '@admin',
}

When I run npx find-cypress-specs --names I get this error. find-cypress-specs: problem parsing file cypress/e2e/e2e/Admin/Admin.spec.ts

I'm assuming this is because of the way I am using the enum as a tag. A string works. Is this a bug that can be fixed, or do I need to take an alternative approach?

Thanks!

@bahmutov
Copy link
Owner

Well, this is very hard to fix, since the value of the tag is pretty hard to know when just parsing the tests, right?

@bahmutov bahmutov added question Further information is requested enhancement New feature or request help wanted Extra attention is needed labels Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants