Closed
Description
#502 resets the API and logger/reporter between runs. Creating fresh instances may be preferable. This would require some sort of code sharing between cli.js
and watcher.js
though, since the former sets up the instances and has access to the required CLI flags.
One option would be to pass a callback to watcher.start()
allowing the watcher to create new API and logger/reporter instances, but leaving the definition in cli.js
.