 [](https://github.com/xojs/xo) [


A Jest Circus environment for Allure reporting.
| Resource | Description |
| -------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| Jest | A delightful JavaScript testing framework. |
| Allure 2 CLI | "A Java jar command line tool that turns Allure result files into beautiful Allure reports." |
1. Add this package
``shell`
yarn add --dev jest-circus-allure-environment
2. Update jest.config.js
See the official Jest docs for more details.
`JSON`
{
"testEnvironment": ["jest-circus-allure-environment"],
"testRunner": "jest-circus/runner"
}
3. Run tests
`shell`
yarn test
4. Open the Allure report
`shell``
allure serve ./allure-results
Updated list available here
Bold items are async test events
_Italic_ items are synchronous test events
0. _error_
1. constructor
2. setup Fn
3. setup
4. _add_hook_
5. _start_describe_definition_
6. _add_test_
7. _finish_describe_definition_
8. run_start / test_skip / test_todo
9. run_describe_start
10. test_start
11. hook_start
12. hook_success / hook_failure
13. test_fn_start
14. test_fn_success / test_fn_failure / error
15. test_done
16. run_describe_finish
17. run_finish
18. teardown
19. teardown Fn