-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_runner: support typescript module mocking #54878
The head ref may contain hidden characters: "fix/mock-modu\u00F2e"
Conversation
Review requested:
|
Failed to start CI- Validating Jenkins credentials ✔ Jenkins credentials valid - Starting PR CI job ✘ Failed to start PR CI: 400 Bad Requesthttps://github.com/nodejs/node/actions/runs/10796555755 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #54878 +/- ##
==========================================
+ Coverage 87.89% 88.02% +0.13%
==========================================
Files 651 652 +1
Lines 183364 183764 +400
Branches 35711 35865 +154
==========================================
+ Hits 161167 161766 +599
+ Misses 15466 15244 -222
- Partials 6731 6754 +23
|
not sure if its a semver minor or patch |
I think this is semver patch. Plus these are all experimental features anyway. |
|
||
test('logger', async () => { | ||
|
||
const { logger: mockedModule} = await import('./module-logger.ts'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const { logger: mockedModule} = await import('./module-logger.ts'); | |
const { logger: mockedModule } = await import('./module-logger.ts'); |
It looks like there is a relevant failure in the CI. |
I think its related to #54645 since it only happens on windows arm64 😭 |
Should we skip on that platform? For the purposes of module mocking I think that would be adequate. |
c2f4b08
to
87c6d5e
Compare
sure, I added the skip on windows arm on the test |
Landed in bb40521 |
PR-URL: #54878 Fixes: #54428 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Erick Wendel <erick.workspace@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it>
PR-URL: nodejs#54878 Fixes: nodejs#54428 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Erick Wendel <erick.workspace@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it>
PR-URL: nodejs#54878 Fixes: nodejs#54428 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Erick Wendel <erick.workspace@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Ugh I named the branch with ò character and GitHub complains :(
Fixes: #54428