Add more power to your tests using Jest-Allure. Easily generate nice reports at the end of the execution.
Allure Framework is a flexible lightweight multi-language test report tool that not only shows a very concise representation of what have been tested in a neat web report form, but allows everyone participating in the development process to extract maximum of useful information from everyday execution of tests.
yarn add -D jest-allure
or
npm install --save-dev jest-allure
Jest-allure doesn't support jest-circus. (but PR's are welcome)
As starting from jest@27 it uses jest-circus as default testrunner you must update jest.config.js and set:
"testRunner": "jest-jasmine2"
Then add jest-allure/dist/setup
to setupFilesAfterEnv
section of your config.
setupFilesAfterEnv: ["jest-allure/dist/setup"]