fix(no-unsupported): fix node:test
module
#378
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've put the non-exported classes in here as well in case we would ever need them
Probably closes #377
Out of scope for this PR as the class isn't exported, but I was wondering how we would handle the "extends
node:stream
'sReadable
class" in the case ofTestsStream
🤔TestsStream
is only created in16.19.0
&18.9.0
, butnode:stream
'sReadable
class is already existing way earlier.For functionality that's present in
node:stream
'sReadable
class before16.19.0
&18.9.0
we should just use16.19.0
&18.9.0
inTestsStream
I think?And for functionality that's added to
node:stream
'sReadable
class after16.19.0
&18.9.0
, we just keep the same values I think?Since I wasn't sure, I kept the original value as a comment
Unfortunately this means that we would need to find some way of noticing ourselves that we need to update
TestsStream
whenever we updatenode:stream
'sReadable
classWe will have the same problem with
TestContext
'sassert
property and all top-level functions fromnode:assert