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

Selector rule doesn't work with helper functions #52

Open
LeoWW opened this issue Apr 17, 2020 · 1 comment
Open

Selector rule doesn't work with helper functions #52

LeoWW opened this issue Apr 17, 2020 · 1 comment
Labels

Comments

@LeoWW
Copy link

LeoWW commented Apr 17, 2020

Hi -- I can't get the require data selectors rule to work with a helper function:

e.g.

export const getTestId = (id: string) => `[data-testid="${id}"]`;

getTestId('headernav');

will there be functionality to support this?

thanks!

@NathanKleekamp
Copy link

Hi, I would also like to know if this is possible? The only work around I can see right now is to disable this rule. Please advise.

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

No branches or pull requests

3 participants