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

JavaScript hygiene automation #62

Open
2 of 3 tasks
simsong opened this issue Sep 2, 2023 · 5 comments
Open
2 of 3 tasks

JavaScript hygiene automation #62

simsong opened this issue Sep 2, 2023 · 5 comments
Labels
test test development

Comments

@simsong
Copy link
Member

simsong commented Sep 2, 2023

Simson has no idea how to do this.
- [ ] Create unit tests for all JavaScript. Issue moved to #354

  • Add JavaScript lint to the Makefile
  • Add JavaScript Jest testing to GitHub actions.
  • Add JavaScript lint to GItHub Actions
@simsong
Copy link
Member Author

simsong commented May 3, 2024

@sbarber2 - How does this strike you:

  • Jest for unit tests
  • Vite to support JavaScript development

And eventually:

@sbarber2 sbarber2 added the enhancement New feature or request label Oct 10, 2024
@sbarber2
Copy link
Contributor

I'm unclear on the precise relationship of Vite (a build tool) and Webpack (a bundler) to the stated goal of this issue of creating unit tests. Seems like this should be 3 enhancement separate Issues.

Also, this issue is somewhat duplicative of #354 and #422

@sbarber2
Copy link
Contributor

Add JavaScript lint to the pytest

What does this mean? Does pytest here mean something like "the pytest (or pytest-app-framework) target of the top-level Makefile"? Or maybe this means just to Do The Right Thing to automate running all our regression tests, regardless of language of origin?

@sbarber2 sbarber2 added test test development and removed enhancement New feature or request labels Oct 13, 2024
@sbarber2
Copy link
Contributor

sbarber2 commented Oct 16, 2024

OK, am rescoping this Issue. JavaScript Jest-based unit tests covered in #354.
Other JavaScript hygiene automation is in scope; see Issue description above.
Moving the Vite and Webpack discussions to, well, discussions #597 and #598 , respectively.

@sbarber2
Copy link
Contributor

I am reluctant to add eslint (JavaScript) lint to our continuous-integration.yml or as a gate for commits or PR merges until we have good test coverage for our existing JavaScript modules (#354). That is, fixing lint violations changes code and thus good practice suggests doing regression testing that we don't have yet. And at that point, we may as well fix all the lint violations in one go so as to take the hit of a huge PR diff just once. My guess is that we won't get to this for Dec2024, but maybe the next one.

@sbarber2 sbarber2 changed the title Add JavaScript unit tests JavaScript hygiene automation Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test test development
Projects
None yet
Development

No branches or pull requests

2 participants