Closed akkie closed 7 years ago
Hi, @akkie!
Thanks for opening this issue.
This looks like an bug with PhantomJS's implementation: issue. Unfortunately, with its maintainer's recent stepping down, I doubt we'll see a fix in PhantomJS.
Redux Saga Test Plan changes the name of the sagaWrapper
function to ensure that task names match the name of forked sagas in app code. We'll probably have to wrap that defineProperty
call in a try..catch
block and possibly put a note in the docs to not depend on the task name
property in a PhantomJS environment.
@akkie I've published the fix with a try..catch
block in v2.4.4. Please let me know if you have any more issues. Thanks!
@jfairbank Thanks :+1: It works as expected!
I've problems running the following example:
This is the error:
This issue comes from this line were you try to define a property for the function
sagaWrapper
.