Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running setup throws ReferenceError: jasmine is not defined on Jest 27 #80

Open
mykhalov opened this issue Aug 19, 2021 · 2 comments
Open

Comments

@mykhalov
Copy link

mykhalov commented Aug 19, 2021

Since Jest 27 switched default test runner, running setup throws:

ReferenceError: jasmine is not defined

  at registerAllureReporter (../../node_modules/jest-allure/dist/setup.js:62:5)
  at Object.<anonymous> (../../node_modules/jest-allure/dist/setup.js:65:1)

A workaround on this is to add the following to jest.config.js:

testRunner: "jest-jasmine2"
@serhat-onedio
Copy link

although this is a fix, I think with this we loose the benefits of jest-circus like retry

@c4lifa
Copy link

c4lifa commented Jun 3, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants