Jest reporter options
In jest.config.js or jest.config.mjs:
export default { reporters: [ 'default', [ 'executable-stories-jest/reporter', { /* options */ }, ], ], setupFilesAfterEnv: ['executable-stories-jest/setup'],};Options reference
Section titled “Options reference”The reporter uses FormatterOptions from executable-stories-formatters. Same core options as Vitest reporter options, plus Jest’s own setupFilesAfterEnv requirement.
Output configuration
Section titled “Output configuration”| Option | Type | Default | Description |
|---|---|---|---|
formats | OutputFormat[] | ["cucumber-json"] | Output formats: "markdown", "html", "junit", "cucumber-json", "cucumber-messages", "cucumber-html". |
outputDir | string | "reports" | Base directory for output files. |
outputName | string | "test-results" | Base filename (without extension). |
outputNameTimestamp | boolean | false | Append a UTC timestamp suffix to the output filename. |
output | OutputConfig | { mode: "aggregated" } | Output routing configuration. |
rawRunPath | string | — | Write the raw run JSON to disk for later CLI use. |
OutputConfig
Section titled “OutputConfig”| Field | Type | Default | Description |
|---|---|---|---|
mode | "aggregated" | "colocated" | "aggregated" | Single file vs one file per source. |
colocatedStyle | "mirrored" | "adjacent" | "mirrored" | Colocated: mirrored under outputDir or next to source file. |
rules | OutputRule[] | [] | Pattern-based overrides (first match wins). |
Markdown options
Section titled “Markdown options”Nested under markdown. See Vitest config for full list.
The same top-level filtering, history, and notification options are also available in Jest reporter config.
Examples
Section titled “Examples”Aggregated markdown
Section titled “Aggregated markdown”[ 'executable-stories-jest/reporter', { formats: ['markdown'], outputDir: 'docs', outputName: 'user-stories', output: { mode: 'aggregated' }, markdown: { title: 'User Stories', includeStatusIcons: true, includeMetadata: true, }, },];Multiple formats
Section titled “Multiple formats”[ 'executable-stories-jest/reporter', { formats: ['markdown', 'html', 'cucumber-json'], outputDir: 'reports', outputName: 'test-results', output: { mode: 'aggregated' }, },];Colocated output
Section titled “Colocated output”[ 'executable-stories-jest/reporter', { formats: ['markdown'], outputDir: 'docs', output: { mode: 'colocated', colocatedStyle: 'mirrored', }, },];