-
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
Support =
in record initialisation
#4519
Conversation
QA Wolf here! As you write new code it's important that your test coverage is keeping up. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Frontend tests are failing. They format code (using unparser.rs), so even though they haven't been updated, they're getting the updated syntax. I think we should update the TS to generate and expect the new syntax. Looking good otherwise, though. |
@@ -75,6 +75,9 @@ fn unparse(test_name: &str) { | |||
}; | |||
// Check recasting the AST produces the original string. | |||
let actual = ast.recast(&Default::default(), 0); | |||
if matches!(std::env::var("EXPECTORATE").as_deref(), Ok("overwrite")) { | |||
std::fs::write(format!("tests/{test_name}/input.kcl"), &actual).unwrap(); |
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.
Nice. I've been running these with cargo insta test --accept
but I don't think we can detect that in the same way.
9cd5191
to
831bbe5
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.
Great!
640d05c
to
fce0b52
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4519 +/- ##
==========================================
- Coverage 85.99% 85.99% -0.01%
==========================================
Files 81 81
Lines 29520 29527 +7
==========================================
+ Hits 25385 25391 +6
- Misses 4135 4136 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
Signed-off-by: Nick Cameron <[email protected]>
No description provided.