#Jest Text Reporter (jest-text-reporter) Jest text output reporter
npm install --save-dev jest-text-reporter
or
yarn add -D jest-text-reporter
To use this reporter you will need to have an Jest test environment set up.
In your package.json
add new reporter:
"jest": {
"bail": false,
"reporters": [
"default",
[
"<rootDir>/node_modules/jest-text-reporter", {
"outputdir": "test-output",
"filename": "test-file.txt"
}
]
]
}
Option | Value | Description |
---|---|---|
outputdir |
string |
Path to output directory |
filename |
string |
Output file name |
npm run jest
or
yarn jest