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
- https://github.com/ReactTraining/history/pull/468
- https://travis-ci.org/ReactTraining/history/builds/255264385?utm_source=github_status&utm_medium=notification
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
- Add a fake chalk in order to work in older browsers Closes #4074 — committed to SimenB/jest by SimenB 7 years ago
- Add a fake chalk in order to work in older browsers Closes #4074 — committed to SimenB/jest by SimenB 7 years ago
- Add fake chalk in browser builds in order to support IE10 (#4367) * Add a fake chalk in order to work in older browsers Closes #4074 * Make fake chalk private * fix import * Normalize ans... — committed to jestjs/jest by SimenB 7 years ago
https://github.com/chalk/chalk/pull/163/files#r128383883
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
The polyfill:
Is Rollup doing something weird?