-
Notifications
You must be signed in to change notification settings - Fork 89
Cannot assign 'NaN' of object '#<Window>' #108
Comments
How are you running these tests? With Jest? I'm a little confused as to why Either way, in v0.1.1 I added the injection of a bunch of Javascript globals into the context that ultimately runs the worker script. This was done to allow the use of Note in the snippet how you are assigning the |
Yes, I am using Jest. |
Ah I see. Yeah, my advice in my previous comment still stands. Assigning all of the
Alternatively, you could delete the
There's probably a handful of other ways as well. If I had to vote, I'd go with my first suggestion. Blindly assigning properties from one object to another is a recipe for breakage (as you see here). Let me know what you use. |
Thanks, @hankjacobs Ended up implementing your solution, it is definilty more explicite than assigning everything.
|
I just bumped your package from version
0.0.11 -> 0.1.1
and I am getting the following error.As mentioned in the CF post, here is my test setup to mock fetch.
The text was updated successfully, but these errors were encountered: