Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(test): test should use expect assertion instead of console.log#17738

Merged
nicolo-ribaudo merged 1 commit into
babel:mainfrom
magic-akari:fixup/issue-17684
Jan 28, 2026
Merged

fix(test): test should use expect assertion instead of console.log#17738
nicolo-ribaudo merged 1 commit into
babel:mainfrom
magic-akari:fixup/issue-17684

Conversation

@magic-akari
Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings January 27, 2026 17:50
@babel-bot
Copy link
Copy Markdown
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/60709

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a testing inconsistency by replacing a console.log statement with a proper expect assertion in a test file. This addresses a code review comment from PR #17737.

Changes:

  • Replaced console.log(test5("nn")) with expect(test5("nn")).toBe(true) to use proper assertion syntax

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jan 27, 2026

Open in StackBlitz

commit: cbbad4b

@nicolo-ribaudo nicolo-ribaudo merged commit 037d3cb into babel:main Jan 28, 2026
59 of 60 checks passed
@github-actions github-actions Bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Apr 30, 2026
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 30, 2026
@magic-akari magic-akari deleted the fixup/issue-17684 branch May 12, 2026 04:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants