-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
jest-matchers fails on IE10 #4074
Comments
FYI @SimenB |
These are always fun to debug... @cpojer do we have a minimum supported browser target? |
Dug into this. Chalk uses https://github.com/chalk/chalk/blob/23092eefd2401f1a41d9fb931ce9091ec2f624c5/index.js#L38-L39 The polyfill: Is Rollup doing something weird? |
Maybe the polyfill doesn't work in IE10, seems like it relies on |
I'm using Babel with polyfills for a fairly big IE9 project (don't get me started on that), and everything just works there. So I think we can get it to work. : ) |
I think |
babel-polyfill is just core-js. And core-js is unable to polyfill it |
I think you are right. : ) |
Special case to some stubbed-out implementation of Chalk when building for the browser? We don't care about the colors |
Stubbed out version might be the best option right now. 👍🏻 As we are retrofitting browser support on a lot of dependencies, stubbing out dependencies might be also be useful in the future. Running the Karma integration tests in IE10 would also be good to avoid regressions. I'll it be able to look into this the next week. 😎🏝 |
* Add a fake chalk in order to work in older browsers Closes #4074 * Make fake chalk private * fix import * Normalize ansi-styles version * Remove yarn.lock from npmignore * Move fake chalk into expect package
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
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
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
andyarn 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:
The text was updated successfully, but these errors were encountered: