Allure-jest. Error: Could not resolve a module for a custom reporter WHEN I run tests #2814
-
Hi all,
And my jest.config.ts
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Allure Jest shouldn't be configured as a reporter. It's a test environment. Please see documentation (step 7) https://allurereport.org/docs/jest/. You can also find the working example here: https://github.com/allure-examples/jest-npm-esm-ts In your case, you should replace
with
and remove |
Beta Was this translation helpful? Give feedback.
Allure Jest shouldn't be configured as a reporter. It's a test environment. Please see documentation (step 7) https://allurereport.org/docs/jest/.
You can also find the working example here: https://github.com/allure-examples/jest-npm-esm-ts
In your case, you should replace
with
and remove
['allure-jest', { outputDirectory: 'allure-results' }],