test(e2e): test CLI in addition to jest integration#880
Merged
Conversation
Contributor
oetr
commented
Apr 20, 2026
- previously, only Jest test was run in our e2e tests
- dependabot upgraded yargs to 18 (ESM-first) and nothing failed, even though node version14 and 16 should fail with this change
- yargs 18+ is ESM-first and does not work on node 14 and 16
There was a problem hiding this comment.
Pull request overview
This PR strengthens end-to-end CI by adding a direct Jazzer.js CLI smoke test across multiple Node versions, ensuring incompatibilities (e.g., ESM-first yargs upgrades) are caught even when the Jest integration still passes.
Changes:
- Add an
end-to-endnpm script to run a minimal CLI fuzz invocation (fuzz:cli). - Introduce a minimal CLI fuzz target (
cli-smoke.cjs) used by the smoke test. - Update the PR workflow to run the CLI smoke test for each Node runtime (14–24), and configure Dependabot to ignore yargs
>=18.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| end-to-end/package.json | Adds fuzz:cli script to exercise the Jazzer.js CLI. |
| end-to-end/cli-smoke.cjs | Adds a minimal fuzz target module used by the CLI smoke test. |
| .github/workflows/run-all-tests-pr.yaml | Runs the new CLI smoke test for each Node version in the e2e job. |
| .github/dependabot.yml | Prevents Dependabot from proposing yargs >=18 updates. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- before this, only jest was tested
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.