jest: jest-matchers fails on IE10

Do you want to request a feature or report a bug? Bug

What is the current behavior? Running latests jest-matchers in a IE10 environment it fails with

19 07 2017 13:42:43.316:INFO [IE 10.0.0 (Windows 8 0.0.0)]: Connected on socket -C3IcIu9DHLMDYfIAAAE with id 90097551
IE 10.0.0 (Windows 8 0.0.0) ERROR
  Object expected
  at webpack:///~/jest-matchers/build-es5/index.js:4994:0 <- tests.webpack.js:5330
IE 10.0.0 (Windows 8 0.0.0): Executed 0 of 0 ERROR (0.417 secs / 0 secs)

If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can yarn install and yarn test.

See

What is the expected behavior? It shouldn’t crash and the history tests should succeed.

Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system. jest-matchers@20.1.0-delta.2

This is related to the work done in:

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (14 by maintainers)

Commits related to this issue

Most upvoted comments

Dug into this. Chalk uses Object.setPrototypeOf, which is transformed into some weird core-js thingy which fails. Not sure why it fails like it does? It’s been over a year since I had to deal with this sort of error…

https://github.com/chalk/chalk/blob/23092eefd2401f1a41d9fb931ce9091ec2f624c5/index.js#L38-L39

image

The polyfill:

image

Is Rollup doing something weird?