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

ansi code escape from jest output with @testing-library/react #493

Open
MrLuje opened this issue Aug 21, 2019 · 0 comments
Open

ansi code escape from jest output with @testing-library/react #493

MrLuje opened this issue Aug 21, 2019 · 0 comments

Comments

@MrLuje
Copy link

MrLuje commented Aug 21, 2019

Environment

  1. node -v: v10.12.0

  2. npm -v: 6.4.1

  3. npm ls jest or npm ls react-scripts (if you haven’t ejected): jest@24.8.0

  4. your vscode-jest settings if customized:

    • jest.pathToJest? node_modules/.bin/jest --no-color
  5. Operating system: windows 10

Prerequisite

  • are you able to run jest test from command line? yup
  • how do you run your tests from command line? npm run test

Steps to Reproduce

There is a known issue with jest ouput in tooltip if colors are enabled which can be solved with the --no-color arg (cf #279)

--no-color fixes this issue but it doesn't seem to impact colors from @testing-library/react which colorizes DOM elements on failing tests

Not sure if the issue can be solved from Jest's side only, though

image

image

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