mcollina / borp

node:test runner wrapper with TypeScript support
MIT License
153 stars 11 forks source link

Support local custom reporters #69

Closed jsumners-nr closed 1 month ago

jsumners-nr commented 1 month ago

This PR resolves #68. In short, borp currently does not support local custom reporters, only those that are installed in a node_modules directory somewhere. This PR rectifies that problem by first trying to load the supplied reporter relative to the process working directory. If that fails, fallback to the current implementation.

Documentation has also been improved to clarify how to use the --reporter switch.