-
Notifications
You must be signed in to change notification settings - Fork 36
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: add Vitest #465
chore: add Vitest #465
Conversation
Preview: https://packit-dashboard-pr-465.surge.sh (deployed at Mon 25 Nov 2024, 13:49 UTC) |
Build succeeded. ✔️ pre-commit SUCCESS in 2m 11s |
370509b
to
b0cdd70
Compare
Build succeeded. ✔️ pre-commit SUCCESS in 2m 17s |
6d263e9
to
8cd934c
Compare
Build succeeded. ✔️ pre-commit SUCCESS in 2m 17s |
280b24d
to
ce9d416
Compare
Build succeeded. ✔️ pre-commit SUCCESS in 2m 13s |
Build succeeded. ✔️ pre-commit SUCCESS in 2m 14s |
fd89687
to
d41b014
Compare
Build succeeded. ✔️ pre-commit SUCCESS in 2m 21s |
d41b014
to
d5d12cc
Compare
Build succeeded. ✔️ pre-commit SUCCESS in 2m 13s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the lockfile got removed in #473 just to be reintroduced here…
Saving the HTML generated by React sounds like something we do in ogr for git-forge responses for tests, but at the same time I wonder what's the point of testing here, when bumping a release might change the expected result. How are you even supposed to tell that something's broken when there's a constant flow of changes from the dependencies…
.github/workflows/test-frontend.yml
Outdated
branches: | ||
- main | ||
- stable | ||
pull_request_target: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pull_request_target: | |
pull_request: |
_target
is only needed when you want to utilize some kind of secrets
There I removed a duplicate, no longer used, file as we had one in two spots. Bit confusing for sure but we should only have the one modified in this PR
In most scenarios it should not change, and is an indicator that things render correctly. We can setup scenarios for how things should look like given specific inputs, such as if the API server is down, one request succeeded but the other one failed etc. So for the snapshots that render React it is small enough that any changes should only happen when code itself is changed, and if it is changed on each dependency update, that should be addressed for sure so it doesn't happen again (if nothing visual is changing that is). But PatternFly tends to keep visual changes to a minimum. We can also do image/pixel tests if we want to instead, but that takes up a bit more storage |
chore: Added Vitest GitHub workflow
For consistency it now is the same as other commands to use dash instead of underscore.
d5d12cc
to
856c2fe
Compare
Build succeeded. ✔️ pre-commit SUCCESS in 2m 19s |
Build succeeded. ✔️ pre-commit SUCCESS in 2m 18s |
OH! that's not a new file, that's 1k new lines in the existing one /o\ |
Adds Vitest
RELEASE NOTES BEGIN
Add Vitest for frontend testing
RELEASE NOTES END