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

chore: Replace jest linting with vitest linting #3735

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Sep 27, 2024

What does this PR do?

  • Replaces legacy jest eslint plugins with a vitest specific plugin
  • Makes the few requisite updates to meet the new linting rules
  • Add pnpm lint:error script which just identifies errors, ignoring warnings

I think that #3731 introduced this issue which dropped jest as a peer dependency.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heavy use of helper functions in this file which wrap expect() functions, so eslint-disable-next-line @vitest/expect-expect is needed throughout. Adding this once to the whole file, instead of for each test, seemed like a riskier approach.

Copy link

github-actions bot commented Sep 27, 2024

Removed vultr server and associated DNS entries

@DafyddLlyr DafyddLlyr merged commit 354d087 into main Sep 30, 2024
12 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/linting-jest-errors branch September 30, 2024 07:58
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 this pull request may close these issues.

2 participants