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: testing improvements #552

Closed
wants to merge 1 commit into from
Closed

chore: testing improvements #552

wants to merge 1 commit into from

Conversation

EvanHahn
Copy link
Contributor

This change makes several test-only improvements:

  • prettier --check should be run. (I had to reconfigure Prettier a bit, and format CHANGELOG.md.)

  • ESLint should be run with the --cache option.

  • Test code should be run in parallel, for performance. ⚠️ This is controversial!

  • lint-staged should run Prettier on all files, not just some extensions.

  • lint-staged should only check files, not fix them. This addresses a
    race condition (search lint-staged's docs for "race condition").

This change makes several test-only improvements:

- `prettier --check` should be run. (I had to reconfigure Prettier a
  bit, and format `CHANGELOG.md`.)

- ESLint should be run with the `--cache` option.

- Test code should be run in parallel, for performance.

- `lint-staged` should run Prettier on all files, not just some
  extensions.

- `lint-staged` should only check files, not fix them. This addresses a
  race condition (search [lint-staged's docs for "race condition"][0]).

[0]: https://www.npmjs.com/package/lint-staged
@EvanHahn EvanHahn requested a review from achou11 April 11, 2024 17:42
@EvanHahn EvanHahn marked this pull request as draft April 11, 2024 17:47
@EvanHahn
Copy link
Contributor Author

Made a mistake here. I also think it's better to split this into smaller PRs, which I'll do now.

@EvanHahn EvanHahn closed this Apr 11, 2024
@EvanHahn EvanHahn deleted the linting-improvements branch April 11, 2024 17:47
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.

1 participant