Open pietrofxq opened 3 years ago
Thanks for reporting!
I did a little digging into this. This only occurs if you use the jest-circus test runner. If you use the default test runner or explicitly set jest-jasmine2 as the test runner it works fine with the latest version of jest.
I think I have a way to make this work with jest-circus in the latest jest version but it would require changing where the recordings are actually stored, possibly. I'm going to sync with a few others on this next week and revisit.
Thanks @palmerj3, since my project is on create-react-app, it would be very difficult to change the runner since I would need to configure jest from scratch
@palmerj3 I see that setup-polly-jest
supports jest-circus, maybe updating this dependency would help?
Yeah I saw that too. Locally when I updated setup-polly-jest to the latest version and removed the block of code you referenced above I still saw some other errors that get triggered. So it will require a bit more thought.
That's why I wanted to involve some more colleagues into this.
The same issue, any progress with that?
this package does not work with the last version of jest. This is the problematic code:
Seems like a quick fix but not sure what is the current best way to get
testPath