Skip to content

chore: extract skipTest into its own harness module#56

Merged
legendecas merged 2 commits intomainfrom
kh/extract-skip-test
Apr 27, 2026
Merged

chore: extract skipTest into its own harness module#56
legendecas merged 2 commits intomainfrom
kh/extract-skip-test

Conversation

@kraenhansen
Copy link
Copy Markdown
Member

@kraenhansen kraenhansen commented Apr 25, 2026

Let's follow a pattern of separating harness utilities into separate files and have a test for each to make it easier for implementors to implement the harness.

Summary

  • Moved skipTest from implementors/node/features.js into a dedicated implementors/node/skip-test.js, matching the pattern of other harness utilities (assert, must-call, gc, load-addon)
  • Added --import for the new module in implementors/node/tests.ts
  • Added tests/harness/skip-test.js to verify the skipTest global is available as a function

Test plan

  • All harness tests pass (7/7), including the new skip-test.js

🤖 Generated with Claude Code

Move skipTest from features.js into a dedicated skip-test.js file,
matching the pattern of other harness utilities (assert, must-call, gc).
Add a harness test to verify the global exists.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kraenhansen
Copy link
Copy Markdown
Member Author

@bavulapati I'd appreciate a review 👍

@kraenhansen kraenhansen requested a review from legendecas April 25, 2026 21:03
@kraenhansen kraenhansen self-assigned this Apr 25, 2026
@kraenhansen kraenhansen moved this from Need Triage to In Progress in Node-API Team Project Apr 25, 2026
Copy link
Copy Markdown
Contributor

@bavulapati bavulapati left a comment

Choose a reason for hiding this comment

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

LGTM

@legendecas legendecas merged commit 32311d1 into main Apr 27, 2026
26 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Node-API Team Project Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants