jest-community / vscode-jest

The optimal flow for Jest based testing in VS Code
MIT License
2.83k stars 291 forks source link

colored output #557

Open xenoterracide opened 4 years ago

xenoterracide commented 4 years ago

I notice that when I run tests with our launch configuration it is very colorful, but when I run with this plugin everything is one color


    {
      "type": "node",
      "request": "launch",
      "name": "Jest Current File",
      "program": "${workspaceFolder}/node_modules/.bin/jest",
      "args": [
        "${fileBasenameNoExtension}",
        "--config",
        "jest.config.js",
        "--forceExit"
      ],```
romaindurand commented 4 years ago

@xenoterracide I'm using Output Colorizer and it gives me a colored jest output.

jrnail23 commented 4 years ago

So it would be great if vscode-jest not only retained Jest's built-in console colors, but also I'd really like it if it could also retain my own colored console logs. Sometimes I like to use chalk to make various console output stand out, to help me identify patterns, etc.

OnkelTem commented 2 years ago

Well, the coloring of Output Colorizer is totally random, the color selection is weird, it's a sheer speculation on the output.

I moved to VSCode quite recently and I wonder how comes that supporting basic terminal color turns to be a big problem which hasn't been resolved for 7 freaking years :)