Specify that `spec` reporter is a class and needs to be instantiate for usage with `run`
Affected URL(s)
https://nodejs.org/api/test.html#test-reporters
Description of the problem
When importing spec test reporter, you need to instantiate it otherwise you will get no output, for example
import { run } from "node:test";
import { tap, spec } from "node:test/reporters";
import { resolve } from "path";
const files = [resolve("./test/test.js")];
run({
files,
concurrency: 1,
timeout: 10000,
})
--- .compose(spec)
+++.compose(new spec())
.pipe(process.stdout);Documentation should indicate that spec reporter is exported as a class unlike tap and dot reporters.