-
Notifications
You must be signed in to change notification settings - Fork 775
How to disable default (tap) reporter? #1821
Description
Hello! I would like to implement my own reporter for a project. This would not be an npm package, just a local script. The --reporter documentation suggest this is possible: "To load a reporter from a local Node.js script, use --require instead." Yet I can't figure out how to do that. I can require a local script just fine. I can change various QUnit.config options or add hooks with QUnit.done() and such, but how do I add the local reporter?
I've tried adding my script (per the Reporter API) to QUnit.config.reporters, and just writing a function directly into the reporters object, but that didn't work (and seemed wrong anyway).
As a side note, I see no way to disable all reporting (for example, doing something like QUnit.config.reporters.tap = false. When I do this, results are still displayed in the terminal (I'm running this in Node.js).