Allow removing betterer logo and setting console.clear behaviour for default reporter #1071
Replies: 2 comments
-
Hey @PatrickElfert! I obviously don't know exactly how you're planning on this working, but I think this could be a perfect use-case for implementing a custom reporter? I'm super curious to know more about your approach in general, as running Betterer multiple times could get super slow (because of how it tried to use worker_threads. Do you have any code you could share? |
Beta Was this translation helpful? Give feedback.
-
Hey @phenomnomnominal thanks for the reply :) We are using betterer at work to slowly migrate our codebase to typescript strict mode. The problem was that we have multiple projects and libraries managed with nx. Since it worked pretty well for us I started this project nx-betterer. The idea was to have a generator that adds the .betterer.ts to a project which points to a betterer.base.ts in the root. The executor then just calls the betterer api. So running nx affected --target=betterer to only run betterer for changed projects or nx run-many --all --parallel --target=betterer to run betterer for all projects in parallel works surprisingly well. But tbh running betterer for all of our projects at once could also be a CPU benchmark but it works. |
Beta Was this translation helpful? Give feedback.
-
I am currently writing a betterer plugin for nx. The only problem I am facing is that the default reporter calls console.clear before rendering the result to the console. This is problematic when running betterer for multiple projects. Additionally, the betterer logo takes up a lot of space.
It would be great if there would be some options for the default reporter that would allow configuration, so I am not required to implement a complete reporter.
Maybe something like this PatrickElfert@0304a1d :)
I am not sure if this should be part of betterer or if I should rather create my own version of the default reporter for my specific use case.
Beta Was this translation helpful? Give feedback.
All reactions