Skip to content

test: refactor repl tab complete tests - #58636

Merged
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
dario-piotrowicz:dario/repl-complete-tests-refactor
Jun 15, 2025
Merged

test: refactor repl tab complete tests#58636
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
dario-piotrowicz:dario/repl-complete-tests-refactor

Conversation

@dario-piotrowicz

@dario-piotrowiczdario-piotrowicz commented Jun 8, 2025

Copy link
Copy Markdown
Member

refactor the test/parallel/test-repl-tab-complete.js file by:

  • making the tests in the file self-contained (instead of all of them sharing the same REPL instance and constantly calling .clear on it)
  • using the test runner with appropriate descriptions to make clearer what is being tested
  • extracting some tests in their own js test files (to increase isolation of the tests and help with issues such as flakiness)

@nodejs-github-botnodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Jun 8, 2025
Comment on lines 56 to 61

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

PS: this is the driving reason for this PR

@codecov

codecovBot commented Jun 8, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.15%. Comparing base (5fe7800) to head (0d6cb84).
Report is 196 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@## main #58636 +/- ##
==========================================
- Coverage 90.16% 90.15% -0.02% 
==========================================
Files 637 637 Lines 188001 188001 Branches 36881 36877 -4 ==========================================
- Hits 169509 169484 -25 - Misses 11238 11286 +48 + Partials 7254 7231 -23 

see 46 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dario-piotrowicz
dario-piotrowiczforce-pushed the dario/repl-complete-tests-refactor branch from ae1c33f to ce45b2aCompareJune 9, 2025 09:05
@dario-piotrowiczdario-piotrowicz added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jun 11, 2025
@dario-piotrowicz

dario-piotrowicz commented Jun 14, 2025

Copy link
Copy Markdown
MemberAuthor

cc. @nodejs/repl would anyone like to have a look? 🙂

Comment threadtest/parallel/test-repl-tab-complete-require.js Outdated
dario-piotrowiczand others added 2 commits June 14, 2025 18:17
refactor the test/parallel/test-repl-tab-complete.js file by:
- making the tests in the file self-contained
(instead of all of them sharing the same REPL instance and
constantly calling `.clear` on it)
- using the test runner with appropriate descriptions to make
clearer what is being tested
- extracting some tests in their own js test files
(to increase isolation of the tests and help with issues such
as flakiness)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
@dario-piotrowicz
dario-piotrowiczforce-pushed the dario/repl-complete-tests-refactor branch from 40bfac8 to 0d6cb84CompareJune 14, 2025 17:17
@dario-piotrowiczdario-piotrowicz added the request-ci Add this label to start a Jenkins CI on a PR. label Jun 14, 2025
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jun 14, 2025
@nodejs-github-bot

This comment was marked as outdated.

@dario-piotrowiczdario-piotrowicz added the commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. label Jun 15, 2025
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@dario-piotrowiczdario-piotrowicz added the commit-queue Add this label to land a pull request using GitHub Actions. label Jun 15, 2025
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jun 15, 2025
@nodejs-github-bot
nodejs-github-bot merged commit aee9bc0 into nodejs:mainJun 15, 2025
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in aee9bc0

@dario-piotrowicz
dario-piotrowicz deleted the dario/repl-complete-tests-refactor branch June 15, 2025 10:10
targos pushed a commit that referenced this pull request Jun 16, 2025
refactor the test/parallel/test-repl-tab-complete.js file by:
- making the tests in the file self-contained
(instead of all of them sharing the same REPL instance and
constantly calling `.clear` on it)
- using the test runner with appropriate descriptions to make
clearer what is being tested
- extracting some tests in their own js test files
(to increase isolation of the tests and help with issues such
as flakiness)
PR-URL: #58636
Reviewed-By: Giovanni Bucci <github@puskin.it>
Reviewed-By: James M Snell <jasnell@gmail.com>
@aduh95aduh95 added the backport-requested-v22.x PRs awaiting manual backport to the v22.x-staging branch. label Jul 21, 2025
@aduh95

Copy link
Copy Markdown
Contributor

This doesn't land cleanly on v22.x-staging, we'd need a backport PR

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.backport-requested-v22.xPRs awaiting manual backport to the v22.x-staging branch.commit-queue-squashAdd this label to instruct the Commit Queue to squash all the PR commits into the first one.needs-ciPRs that need a full CI run.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@dario-piotrowicz@nodejs-github-bot@aduh95@jasnell@puskin