Skip to content

Allure-jest. Error: Could not resolve a module for a custom reporter WHEN I run tests #2814

Discussion options

You must be logged in to vote

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

testEnvironment: 'node',

with

testEnvironment: 'allure-jest/node',

and remove ['allure-jest', { outputDirectory: 'allure-results' }],

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kemamoto
Comment options

Answer selected by baev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants