GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||
GeezerVison is showing github.com — test_runner: add mock return, resolve, reject and throw shorthands by araujogui · Pull Request #66631 · nodejs/node Conversation
|
|
Review requested:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## main #66631 +/- ## ========================================== - Coverage 92.79% 90.49% -2.30% ========================================== Files 422 791 +369 Lines 193669 277122 +83453 Branches 29886 53285 +23399 ========================================== + Hits 179712 250783 +71071 - Misses 13630 16752 +3122 - Partials 327 9587 +9260
🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Add mockThrownValue() to MockFunctionContext as a shorthand for a mockImplementation() that throws. Assisted-by: Claude Opus 5.5 Signed-off-by: Guilherme Araújo <[email protected]>
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Landed in f513ec7 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Add mockReturnValue(), mockResolvedValue() and mockRejectedValue() to MockFunctionContext as shorthands for common mockImplementation() patterns. Signed-off-by: Guilherme Araújo <[email protected]> PR-URL: #66631 Reviewed-By: Chemi Atlow <[email protected]>
Notable changes: child_process: * (SEMVER-MINOR) add subprocess.timedOut (Marco) #66639 doc: * add efekrskl to collaborators (Efe Karasakal) #67376 * add Philipp Dunkel to contributors (Philipp Dunkel) #67378 * add christianaurichzm to collaborators (Christian Aurich Zanettini Martins) #67377 fs: * (SEMVER-MINOR) add mkstemp() (Marco) #66484 http: * (SEMVER-MINOR) batch body spans per parser execute (Guilherme Araújo) #67187 lib: * (SEMVER-MINOR) speed up AbortSignal (Robert Nagy) #66789 module: * (SEMVER-MINOR) add --experimental-strip-private-modules (Marco Ippolito) #63869 process: * (SEMVER-MINOR) return unregister fn from finalization (Matteo Collina) #66482 test_runner: * use AsyncLocalStorage instead of async_hooks (Matteo Collina) #66795 * (SEMVER-MINOR) add mockReturnValue and promise helpers (Guilherme Araújo) #66631 worker: * (SEMVER-MINOR) preload streams into startup snapshot (Matteo Collina) #66311 zlib: * (SEMVER-MINOR) add crc32c (Philipp Dunkel) #66828 PR-URL: #67664
Notable changes: child_process: * (SEMVER-MINOR) add subprocess.timedOut (Marco) #66639 doc: * add efekrskl to collaborators (Efe Karasakal) #67376 * add Philipp Dunkel to contributors (Philipp Dunkel) #67378 * add christianaurichzm to collaborators (Christian Aurich Zanettini Martins) #67377 fs: * (SEMVER-MINOR) add mkstemp() (Marco) #66484 http: * (SEMVER-MINOR) batch body spans per parser execute (Guilherme Araújo) #67187 lib: * (SEMVER-MINOR) speed up AbortSignal (Robert Nagy) #66789 module: * (SEMVER-MINOR) add --experimental-strip-private-modules (Marco Ippolito) #63869 process: * (SEMVER-MINOR) return unregister fn from finalization (Matteo Collina) #66482 test_runner: * use AsyncLocalStorage instead of async_hooks (Matteo Collina) #66795 * (SEMVER-MINOR) add mockReturnValue and promise helpers (Guilherme Araújo) #66631 worker: * (SEMVER-MINOR) preload streams into startup snapshot (Matteo Collina) #66311 zlib: * (SEMVER-MINOR) add crc32c (Philipp Dunkel) #66828 PR-URL: #67664
Add mockReturnValue(), mockResolvedValue() and mockRejectedValue() to MockFunctionContext as shorthands for common mockImplementation() patterns. Signed-off-by: Guilherme Araújo <[email protected]> PR-URL: nodejs#66631 Reviewed-By: Chemi Atlow <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.