Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mocha tests failing @ _map return this.size #224

Open
ericuldall opened this issue Aug 20, 2019 · 5 comments
Open

Mocha tests failing @ _map return this.size #224

ericuldall opened this issue Aug 20, 2019 · 5 comments

Comments

@ericuldall
Copy link

It seems there has been some recent update that is breaking unit tests across many of our repos with the same error.

/srv/node_modules/collections/_map.js:162
            return this.size;
                        ^

TypeError: Method get Map.prototype.size called on incompatible receiver #<Map>

Any idea why we're seeing this and how we can fix it?

@marchant
Copy link
Member

That file was last changed on Jun 17, 2016, not sure why this would come up now, let us know what you find out.

@ericuldall
Copy link
Author

Okay, that is strange as we haven't made any changes to anything in our repos either.

@ericuldall
Copy link
Author

Okay, we found the issue is related to an update in @sinonjs/commons. Closing this and will open a ticket there.

@ericuldall
Copy link
Author

Here's the response from sinon, saying the problem may be how collections extends their object:
sinonjs/commons#18

Any thoughts on this?

@ericuldall ericuldall reopened this Aug 21, 2019
@nickyang07
Copy link

Having the same issue with jest. Any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants