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

chai global missing for vitest #278

Closed
silverwind opened this issue Feb 12, 2025 · 1 comment · Fixed by #279
Closed

chai global missing for vitest #278

silverwind opened this issue Feb 12, 2025 · 1 comment · Fixed by #279

Comments

@silverwind
Copy link
Contributor

silverwind commented Feb 12, 2025

The vitest globals seem to be sourced from here:

https://github.com/vitest-dev/eslint-plugin-vitest/blob/35ae43111e3d612e3cf59e10d8a95cfbb0e21791/src/index.ts#L281-L298

Comparing that to the eslint plugin I use, I notice the chai global is missing above:

https://github.com/saqqdy/eslint-plugin-vitest-globals/blob/d3fe9b63bfd7ae3751e2d6feb4a901208ad213b6/index.js#L14-L37

It definitely exists as of [email protected].

This is likely a upstream bug in eslint-plugin-vitest, after that is fixed, the globals need to be regenerated.

@silverwind
Copy link
Contributor Author

Upstream PR: vitest-dev/eslint-plugin-vitest#658

silverwind added a commit to silverwind/globals that referenced this issue Feb 12, 2025
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

Successfully merging a pull request may close this issue.

1 participant