You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Programmatically using the spec reporter from node:test/reporters doesn't output anything. #48585
Oh thank you. I can open a PR for this in the docs if you want. PS: sorry I missed the other issue, I did a research but didn't find it.
I am not sure about opening a PR to fix the docs, as there are already 2 PRs (both seem inactive for a while) to expose spec as a function: #48202, #48208
Activity
targos commentedon Jun 28, 2023
I think it's a duplicate of #48112
atlowChemi commentedon Jun 28, 2023
Yup 🙂
@nohehf the TL;DR is that
specis a class and need to be instantiated for this to work:// index.js import { run } from "node:test"; import process from "node:process"; import { spec } from "node:test/reporters"; run({ files: ["./test.js"], }) - .compose(spec) + .compose(new spec()) .pipe(process.stdout);nohehf commentedon Jun 29, 2023
Oh thank you. I can open a PR for this in the docs if you want.
PS: sorry I missed the other issue, I did a research but didn't find it.
atlowChemi commentedon Jun 30, 2023
I am not sure about opening a PR to fix the docs, as there are already 2 PRs (both seem inactive for a while) to expose
specas a function: #48202, #48208atlowChemi commentedon Jul 6, 2023
Closing as we agreed this is a duplicate 🙂