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

instanceof Object not working #25

Open
DoroGi opened this issue Dec 2, 2024 · 0 comments
Open

instanceof Object not working #25

DoroGi opened this issue Dec 2, 2024 · 0 comments

Comments

@DoroGi
Copy link

DoroGi commented Dec 2, 2024

Hi, I substituted jest-environment-jsdom with jest-fixed-jsdom, to try it out, and noticed that a couple of simple tests are not passing anymore.

I tracked down the issue to a line in my code that is similar to this:

const isObj = (o) => return (o instanceof Object)

Which with jest-environment-jsdom the function returns true, but with jest-fixed-jsdom return false.
Probably related to jestjs/jest#2549?

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

1 participant