-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
tests: bring fixtures in line with templates #7166
tests: bring fixtures in line with templates #7166
Conversation
|
068569d
to
0a7f5b3
Compare
To make this simpler in the future, I added a |
@brophdawg11 I think we should keep this manual as we'll always have subtle small changes like having the |
Something in a fixture is causing a crash but it's not failing any tests? That feels like it should cause a test failure...? My personal stance is that large-scale changes like this that are done manually worry me since it's easy to mess it up manually and hard to detect in a PR since the diff is so large (a bad combination). I think some form of automated copy or some form of being able to read directly from templates in tests would make it much easier to handle these and get them merged in the future. |
@brophdawg11 It's not because I commented it out (for now) |
13aafdd
to
f9e1ca5
Compare
@brophdawg11 It seems like we had a bug that I just discovered due to these updates |
803ac62
to
b94ee35
Compare
Am I understanding this correctly?
Is this actually a problem? The unit tests don't care about the version since they're running off local repo code anyway. If I run the copy script, I see 3 main things that get updated:
I'm just not seeing any reason we want to only bring these 95% in line instead of 100% in-line with templates if the actual templates being used don't cause any issues? And beyond that - I'm half wondering why our uint etsts don't just run against the templates and why we can';t delete the fixtures entirely - but that's a larger question that's beyond the scope here I think. |
b94ee35
to
371e279
Compare
@brophdawg11 Correct
I presume it is, I wouldn't know why it's otherwise set to
Same reasoning as the
Seems like I missed updating that one in the Deno template in #7089 🙈
I updated the script to also copy the templates into the
That's indeed beyond the scope of this ticket |
@MichaelDeBoey I guess we could manually define a custom package.json in the Vanilla Extract test? |
091a676
to
4120ac8
Compare
@brophdawg11 @markdalgleish I added The other problems I raised are still not fixed though 🤷♂️ |
4120ac8
to
69c78be
Compare
@MichaelDeBoey yeah I actually wouldn't try to tackle integration test fixtures in this PR or with the script since those are actual running apps so commands/ Can we put this back to just a script to update unit tests fixtures and get that merged, and tackle any updates to integration test fixtures in a separate PR? |
@brophdawg11 This PR was always about both updating integration + unit test fixtures, the script you made was only about unit test fixtures I reverted the changes I made to your script, so it's only updating the unit test fixtures again |
04836b4
to
ed2139f
Compare
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.
Just one question otherwise LGTM
74d03b5
to
5560634
Compare
dc49bcd
to
d0d6edf
Compare
Co-authored-by: Matt Brophy <[email protected]>
d0d6edf
to
a9a72ac
Compare
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
No description provided.