-
Notifications
You must be signed in to change notification settings - Fork 34
Deeper Jest integration #585
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
0f36255
core: Fix fork mode check for "minimize_crash" parameter
bertschneider cb0ace8
test: Speedup fuzztests
oetr 829a3be
test: Set proper excludes in selffuzz tests
bertschneider 6503ed1
test: Fix Jest haste map warnings
bertschneider 4a6669a
test: Extend test ignore pattern
bertschneider 0633301
e2e: Update local run description
bertschneider cf07ce4
core: Provide global Jazzer.js object
bertschneider eb6a750
core: Return instrumentor from init function
bertschneider feaf296
jest: Rewrite Jest integration
bertschneider 5627350
jest: Use generated inputs in coverage runs
bertschneider 756b771
core: Update finding stack cleanup
bertschneider 929d39c
jest: Update error stack cleanup
bertschneider 779d47b
jest: Add Jest ESM example
bertschneider 2eb737a
docs: Add migration guide
bertschneider 39ede01
jest: reportFinding can be called from Jest tests
oetr 6130db1
core: Extend global Jazzer.js object API
bertschneider 3b54af3
core: Use global Jazzer.js object for dictionary
bertschneider 87483a2
core: Use global Jazzer.js object for callbacks
bertschneider File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # Migration Guide | ||
|
|
||
| This document describes breaking changes in major versions and steps to migrate | ||
| from one to the next. | ||
|
|
||
| ## 2.0.0 | ||
|
|
||
| This version fundamentally changed the Jest integration in module | ||
| `@jazzer.js/jest-runner`. The new approach provides a tighter integration with | ||
| Jest and allows fuzz tests to use all available Jest features. Most notably this | ||
| includes the widely missed mocking functionality. | ||
|
|
||
| ### Migration steps | ||
|
|
||
| - In the Jest configuration, move `@jazzer.js/jest-runner` from `runner` to | ||
| `testRunner`. A valid configuration looks like this: | ||
|
|
||
| ```diff | ||
| { | ||
| displayName: { | ||
| name: "Jazzer.js", | ||
| color: "cyan", | ||
| }, | ||
| preset: "ts-jest", | ||
| - runner: "@jazzer.js/jest-runner", | ||
| + testRunner: "@jazzer.js/jest-runner", | ||
| testEnvironment: "node", | ||
| testMatch: ["<rootDir>/*.fuzz.[jt]s"], | ||
| } | ||
| ``` | ||
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,9 @@ | ||
| { | ||
| "includes": ["target", "integration.fuzz", "worker.fuzz"], | ||
| "excludes": ["node_modules"], | ||
| "fuzzerOptions": ["-rss_limit_mb=16000", "-runs=100000"] | ||
| "excludes": ["@babel"], | ||
| "fuzzerOptions": [ | ||
| "-rss_limit_mb=16000", | ||
| "-use_value_profile=1", | ||
| "-runs=1000000" | ||
| ] | ||
| } |
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
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
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
Empty file.
Empty file.
Empty file.
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.