You may install this package as a development dependency:
npm install --save-dev jest-spec-reporter
Configure Jest to use the reporter.
For example, create a jest.config.js
file containing:
module.exports = {
verbose: false,
testPathIgnorePatterns: ["/node_modules/"],
reporters: ["jest-spec-reporter"]
};
You can checkout the expected output:
git clone https://github.com/pierreroth64/jest-spec-reporter.git
cd jest-spec-reporter
npm install
npm run example