You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running jest with jest-allure installed, I often receive the above error. This did not use to happen, before using jest-allure.
Extended error message:
UserPreferences › can create an instance of the model from an arbitrary mock
TypeError: Cannot set property 'currentTest' of undefined
at Allure.Object.<anonymous>.Allure.startCase (node_modules/allure-js-commons/index.js:44:23)
at JasmineAllureReporter.specStarted (node_modules/jest-allure/dist/setup.js:24:21)
console.error node_modules/jest-allure/dist/setup.js:23
specStarted = skip NeedMock dummy
console.error node_modules/jest-allure/dist/setup.js:14
startSuite = UserPreferences
console.error node_modules/jest-allure/dist/setup.js:23
specStarted = can create an instance of the model from an arbitrary mock
It seems that startSuite is being called after specStarted, which would explain why Allure.startCase cannot find the suite. Any idea why this would be happening?
The text was updated successfully, but these errors were encountered:
When running jest with jest-allure installed, I often receive the above error. This did not use to happen, before using jest-allure.
Extended error message:
Package versions:
Jest config (in package.json):
I added a few console logs in jest-aalure/dist/setup.js:
It seems that startSuite is being called after specStarted, which would explain why Allure.startCase cannot find the suite. Any idea why this would be happening?
The text was updated successfully, but these errors were encountered: