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

[jest-plugin-set] Eslint support? #96

Open
hakunin opened this issue Mar 14, 2020 · 2 comments
Open

[jest-plugin-set] Eslint support? #96

hakunin opened this issue Mar 14, 2020 · 2 comments

Comments

@hakunin
Copy link

hakunin commented Mar 14, 2020

Description

Eslint will complain about undefined variabels when using jest-plugin-set.
Is there a way to work around that?
So far I've had to turn the no-undef rule off for my tests.

Screenshot

xyz/models/__tests__/Plan-test.js
  32:23  error  'organization' is not defined  no-undef
  32:40  error  'free_plan' is not defined     no-undef
  35:39  error  'organization' is not defined  no-undef
  36:17  error  'free_plan' is not defined     no-undef

✖ 4 problems (4 errors, 0 warnings)
@bjufre
Copy link

bjufre commented Apr 28, 2020

@hakunin any quick workarounds for this? It's quite annoying 🤔

@hakunin
Copy link
Author

hakunin commented Apr 29, 2020

@bjufre What we're doing is we've disabled the no-undef in our test files for now.

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

No branches or pull requests

2 participants