-
-
Notifications
You must be signed in to change notification settings - Fork 35.7k
type stripping + module mocking causes test runner to throw #54428
Copy link
Copy link
Closed
Labels
strip-typesIssues or PRs related to strip-types supportIssues or PRs related to strip-types supporttest_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.
Metadata
Metadata
Assignees
Labels
strip-typesIssues or PRs related to strip-types supportIssues or PRs related to strip-types supporttest_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Version
22.6.0
Platform
Subsystem
module
What steps will reproduce the bug?
logger.ts)replace-js-ext-with-ts-ext.test.ts)node --experimental-test-module-mocks --experimental-strip-types --test ./replace-js-ext-with-ts-ext.test.ts)How often does it reproduce? Is there a required condition?
100%
What is the expected behavior? Why is that the expected behavior?
It should behave the same as when the module mock target is a node builtin or a javascript file.
What do you see instead?
Additional information
No response