🩳
SummaryReporter
Gimme the short report.
This reporter only outputs failed tests and is the default TestReporter used by the as-pect cli. It can be used directly from the configuration file.
1
const { SummaryReporter } = require("@as-pect/core");
2
3
// export your configuration
4
module.exports = {
5
reporter: new SummaryReporter({
6
// enableLogging: false, // disable logging
7
}),
8
};
Copied!
It can also be used from the cli using the --summary flag.
1
npx asp --summary
2
npx asp --summary=enableLogging=false
Copied!
Note: When using parameters for the builtin reporters, the = is required to parse the querystring parameters correctly.
Copy link