Repository navigation
impossible to use spec test reporter without new #50176
Description
Activity
- addedtest_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.
on Oct 13, 2023 Hello, I have a question.
Should both work(new spec,spec)? Or should onlyspecwork?
Currently,new specandspec()work, butspecdoes not work.
I would like to ask if it should work the same way astapanddot.While looking for related content, I found that there was an issue that the behavior was different before. (#48112)
I'd like to work on this
I think the reason is spec is a class, but others are *function
I'm not sure this is a bug, you need to call the function, i.e.
.compose(spec()). FWIW when using thenewkeyboard, you are calling the function as a constructor, which is supported but it's no longer necessary since #49184 has landed.Reacted by Alex Yang and Moshe AtlowI'm not sure this is a bug, you need to call the function, i.e.
.compose(spec()). FWIW when using thenewkeyboard, you are calling the function as a constructor, which is supported but it's no longer necessary since #49184 has landed.It's a bug in the form of anything you said is not documented. The only documented thing is
.compose(tap), which is incorrect.Reacted by Alex Yangnode/lib/internal/streams/duplexify.js
Line 86 in 3a648af
const { value, write, final, destroy } = fromAsyncGen(body); The error starts from here, body is class SpecReporter, but nodejs treats it as a async generator
- added a commit that references this issue
on Oct 23, 2023 - added a commit that references this issue
on Nov 11, 2023
Version
v18.18.1 and v20.8.0
Platform
all
Subsystem
node:test
What steps will reproduce the bug?
Nothing gets printed.
Instead, the following works:
How often does it reproduce? Is there a required condition?
all the time.
What is the expected behavior? Why is that the expected behavior?
No response
What do you see instead?
No output without new
Additional information
No response