-
Notifications
You must be signed in to change notification settings - Fork 111
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
Add option to write validation results to file. #2131
Conversation
… feat/output_to_file I accidently commited changes to src/files/outfile.ts and src/setup/options.ts to this merge.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2131 +/- ##
==========================================
+ Coverage 85.72% 87.54% +1.82%
==========================================
Files 91 133 +42
Lines 3782 7003 +3221
Branches 1220 1657 +437
==========================================
+ Hits 3242 6131 +2889
- Misses 454 777 +323
- Partials 86 95 +9 ☔ View full report in Codecov by Sentry. |
|
||
if (options.outfile) { | ||
if (globalThis.Deno) { | ||
Deno.writeTextFileSync(options.outfile, output_string) |
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.
I am just curious - is writing to a file is a challenge in original Node???
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.
No, but it is a challenge in a browser. This code is currently ever only run by browsers and Deno.
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.
ah, I see -- it was not "deno vs legacy" (which is on my mind when "not deno") it was "deno vs in-browser"! Thank you @rwblair for the explanation!
Only works in Deno. Also makes black holing nifit library output less black holey.
Closes #829