-
Notifications
You must be signed in to change notification settings - Fork 33
Description
Here is my package.json
{
"name": "jest-integration-example",
"scripts": {
"test": "jest",
"fuzz": "JAZZER_FUZZ=1 jest",
"coverage": "jest --coverage"
},
"devDependencies": {
"@jazzer.js/core": "^2.1.0",
"@jazzer.js/jest-runner": "^1.1.0",
"jest": "29.3.1"
},
"jest": {
"projects": [
{
"displayName": "test"
},
{
"displayName": {
"name": "Jazzer.js",
"color": "cyan"
},
"testMatch": [
"/**/*.fuzz.js"
],
"testRunner": "@jazzer.js/jest-runner"
}
]
}
}
and I am running the command "npm run fuzz", and get the below error
npm run coverage
coverage
jest --coverage
PASS test ./workerGoldenReference.test.js
PASS test ./integration.test.js
FAIL Jazzer.js ./worker.fuzz.js
● Test suite failed to run
TypeError: Class constructor FuzzRunner cannot be invoked without 'new'
at runTestInternal (node_modules/jest-runner/build/runTest.js:367:22)
FAIL Jazzer.js ./integration.fuzz.js
● Test suite failed to run
TypeError: Class constructor FuzzRunner cannot be invoked without 'new'
at runTestInternal (node_modules/jest-runner/build/runTest.js:367:22)
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
---|---|---|---|---|---|
All files | 0 | 0 | 0 | 0 | |
---------- | --------- | ---------- | --------- | --------- | ------------------- |
Test Suites: 2 failed, 2 passed, 4 total | |||||
Tests: 8 passed, 8 total | |||||
Snapshots: 0 total | |||||
Time: 0.741 s, estimated 1 s | |||||
Ran all test suites in 2 projects. |