Attempted to wrap which is already wrapped
Restart is often necessary to fix the issue. It works few times, code can be changed without an error and when it happens Wallaby restart is the only option left. But maybe you will have better idea. Is there something Wallaby or I can do better with my tests?
I have problems with stubbing of global Date obejct with sinon sandbox. Skip to content. Star New issue. Jump to bottom. Attempted to wrap Labels bug. Copy link. First Run: no error some code changed, tests rerun, repeat after some code changed - error: restart walaby - no error The text was updated successfully, but these errors were encountered:.
Attached screenshot link is broken, please paste another screenshot. In afterEach I am using sandbox. You can use beforeEach and afterEach to replace before and after instead of moving the stub and restore calls into each individual it block. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Sinon Error "Attempted to wrap Asked 2 years, 5 months ago. Active 2 years, 1 month ago. Viewed times. I have multiple files that use sinon to stub the same method Utils. Improve this question. Add a comment. Active Oldest Votes.
However, I'm getting an error and the tests are failing. I can't find anything in the Sinon. I know verify also does a restore on all the functions it mocks and I thought that it was enough to allow me to write a new expects behavior for the same function, but apparently I was wrong. Ok, so after spending 2 hours on this problem last Friday with no luck, I figured it out twenty min after posting this question.
Adding var fn. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Attempted to wrap sendRequest which is already wrapped Ask Question. Asked 8 years, 4 months ago.
Active 5 years, 3 months ago. Viewed 3k times. Here's my spec with just the relevant tests other tests aren't using mock : describe "mysite.
0コメント