Jest Not Displaying Colors, Or Accepting Commands

时间:2018-06-04 17:38:37

标签: windows-7 jestjs git-bash

I'm running Jest to test a Create React App in a Git-Bash terminal, on Windows 7. It's running the tests as it should; but it isn't displaying the PASS/FAIL messages with color enhancements.

Also, when it asks for a 'u' to update snapshots, it doesn't accept the u. Control-C'ing after trying the u, I see the u as the first command once Jest has stopped running.

Has anyone seen these behaviors before? Any idea how to fix?

Thanks for your help.

1 个答案:

答案 0 :(得分:0)

[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://tempuri.org/")]添加到您的export FORCE_COLOR=true.bash_profile中。

来源:https://github.com/facebook/jest/issues/3877#issuecomment-422088942