Skip to content
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: refactor some esm tests #55472

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

aduh95
Copy link
Contributor

@aduh95 aduh95 commented Oct 20, 2024

Those tests were using unusual patterns, making them a bit hard to read.

@nodejs-github-bot nodejs-github-bot added esm Issues and PRs related to the ECMAScript Modules implementation. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Oct 20, 2024
Copy link

codecov bot commented Oct 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.41%. Comparing base (b0ffe9e) to head (f4c1c6c).
Report is 123 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #55472      +/-   ##
==========================================
- Coverage   88.42%   88.41%   -0.02%     
==========================================
  Files         653      653              
  Lines      187498   187498              
  Branches    36100    36098       -2     
==========================================
- Hits       165791   165772      -19     
- Misses      14957    14966       +9     
- Partials     6750     6760      +10     

see 30 files with indirect coverage changes

@aduh95 aduh95 added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Oct 21, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 21, 2024
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@aduh95 aduh95 added commit-queue Add this label to land a pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Nov 5, 2024
@nodejs-github-bot
Copy link
Collaborator

import { mustCall } from '../common/index.mjs';
import { strictEqual } from 'assert';
import '../common/index.mjs';
import assert from 'node:assert';

import { importFixture } from '../fixtures/pkgexports.mjs';
Copy link
Member

Choose a reason for hiding this comment

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

While we're making changes in tests, it would be nice if we could start adding comments that describe the expected tested behavior or make use of the node:test API and provide descriptive names for the tests.

@aduh95 aduh95 added the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 5, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 5, 2024
@nodejs-github-bot nodejs-github-bot merged commit ecc6238 into nodejs:main Nov 5, 2024
80 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in ecc6238

aduh95 added a commit that referenced this pull request Nov 6, 2024
PR-URL: #55472
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
aduh95 added a commit that referenced this pull request Nov 6, 2024
PR-URL: #55472
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
tpoisseau pushed a commit to tpoisseau/node that referenced this pull request Nov 21, 2024
PR-URL: nodejs#55472
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
ruyadorno pushed a commit that referenced this pull request Nov 27, 2024
PR-URL: #55472
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
ruyadorno pushed a commit that referenced this pull request Nov 27, 2024
PR-URL: #55472
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
ruyadorno pushed a commit that referenced this pull request Nov 27, 2024
PR-URL: #55472
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. esm Issues and PRs related to the ECMAScript Modules implementation. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants