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

Runs more tests #5875

Merged
merged 3 commits into from
Oct 26, 2023
Merged

Runs more tests #5875

merged 3 commits into from
Oct 26, 2023

Conversation

arcanis
Copy link
Member

@arcanis arcanis commented Oct 26, 2023

What's the problem this PR addresses?

We don't run the unit tests on Node 20/21 on other OSes than Linux, so we didn't notice that one of them was failing.

How did you fix it?

This diff increases the coverage so we test both the oldest and newest supported releases across all platforms. It also adds Node.js 21, to track regressions before they land into an even release.

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

@@ -4,6 +4,8 @@ import os from 'os';
import * as execUtils from './execUtils';
import * as miscUtils from './miscUtils';

export const major = Number(process.versions.node.split(`.`)[0]);
Copy link
Member

Choose a reason for hiding this comment

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

I don't think adding this here is necessary when it's only used in tests.

Copy link
Member Author

Choose a reason for hiding this comment

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

I still prefer it to duplicating the code, and nodeUtils is as good a place as any. I'd prefer to avoid adding test-specific "general utils", as they are harder to discover.

@arcanis arcanis merged commit 36b3c2d into master Oct 26, 2023
24 checks passed
@arcanis arcanis deleted the mael/tests-os-coverage branch October 26, 2023 19:08
@arcanis
Copy link
Member Author

arcanis commented Oct 26, 2023

Merged; hopefully with that nodejs/citgm#1022 will pass 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants