code-intelligence.com/cifuzz@v0.40.0/pkg/messaging/instructions/nodets (about)

     1  To use jazzer.js, add a dev-dependency to @jazzer.js/jest-runner to your
     2  project. To do so, execute the following command:
     3  
     4      # if you use npm
     5      npm install --save-dev @jazzer.js/jest-runner ts-jest
     6  
     7      # or if you use yarn
     8      yarn add --dev @jazzer.js/jest-runner ts-jest
     9  
    10  
    11  To integrate with your existing jest setup, please add this to your
    12  'jest.config.ts':
    13  
    14      import type { Config } from "jest";
    15  
    16      const config: Config = {
    17        verbose: true,
    18        projects: [
    19          {
    20             displayName: "Jest",
    21             preset: "ts-jest",
    22          },
    23          {
    24             displayName: {
    25               name: "Jazzer.js",
    26               color: "cyan",
    27            },
    28            preset: "ts-jest",
    29            runner: "@jazzer.js/jest-runner",
    30            testEnvironment: "node",
    31            testMatch: ["<rootDir>/*.fuzz.[jt]s"],
    32          },
    33        ],
    34        coveragePathIgnorePatterns: ["/node_modules/", "/dist/"],
    35        modulePathIgnorePatterns: ["/node_modules", "/dist/"],
    36      };
    37  
    38      export default config;
    39  
    40  To introduce the fuzz function types globally, add the following import to globals.d.ts:
    41  
    42      import "@jazzer.js/jest-runner";
    43  
    44  This could also be done in the individual test files.