You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using vscode-jest 2.9.2, which should have #293 , and jest 23.6.0, which should have jestjs/jest#5909 , I am still seeing ANSI codes in failure messages.
Is there more configuration I need to be doing to fix this? Did I misunderstand the expected result of the above changes?
(this is not a recent regression for me, it's been like this many months, I was just waiting for the recent 2.9.2 release to see if that fixed it)
Environment
node -v: 10.9.0
npm -v: 6.2.0
npm ls jest or npm ls react-scripts (if you haven’t ejected): 23.6.0
your vscode-jest settings if customized: N/A
Operating system: macOS 10.13.3
Prerequisite
are you able to run jest test from command line? YES
how do you run your tests from command line? (for example: npm run test or node_modules/.bin/jest) yarn test (which maps to jest)
Steps to Reproduce
The one line in the screenshot is all it takes for me.
Relevant Debug Info
Looks like --no-color is being provided to jest.
[Extension Host] spawning process with command=/<project>/node_modules/.bin/jest, args=--json,--useStderr,--outputFile,/var/folders/z5/46hxmsdj4s339_mjk63_br91wmht3p/T/jest_runner.json,--no-color
I see two errors but am not sure if they are related:
ERR Cannot read property 'text' of undefined: TypeError: Cannot read property 'text' of undefined
at searchNodes (/Users/cclarke/.vscode/extensions/orta.vscode-jest-2.9.2/node_modules/jest-test-typescript-parser/build/type_script_parser.js:50:43)
at visitNode (/Users/cclarke/.vscode/extensions/orta.vscode-jest-2.9.2/node_modules/typescript/lib/typescript.js:13997:24)
at Object.forEachChild (/Users/cclarke/.vscode/extensions/orta.vscode-jest-2.9.2/node_modules/typescript/lib/typescript.js:14229:24)
.
. (repeats a few times)
.
at Object.parse (/Users/cclarke/.vscode/extensions/orta.vscode-jest-2.9.2/node_modules/jest-test-typescript-parser/build/type_script_parser.js:88:47)
at parse (/Users/cclarke/.vscode/extensions/orta.vscode-jest-2.9.2/node_modules/jest-test-typescript-parser/build/index.js:48:64)
at Object.parseTest (/Users/cclarke/.vscode/extensions/orta.vscode-jest-2.9.2/out/src/TestParser.js:12:12)
at TestResultProvider.getResults (/Users/cclarke/.vscode/extensions/orta.vscode-jest-2.9.2/out/src/TestResults/TestResultProvider.js:19:43)
ERR Unexpected token, expected : (34:11): SyntaxError: Unexpected token, expected : (34:11)
at Parser.pp$5.raise (/Users/cclarke/.vscode/extensions/orta.vscode-jest-2.9.2/node_modules/babylon/lib/index.js:4454:13)
(stack trace is long but includes Snapshot.getMetadata)
(there are a few more unexpected token errors at different positions)
Expected Behavior
Test failure messages are human-readable
Actual Behavior
Test failure messages are filled with [39m , [32m, etc
The text was updated successfully, but these errors were encountered:
@msfeldstein Actually this was finally fixed for me with the recent-ish version 3.1.0 (which includes in the release notes that "color escape sequences should be gone from all error messages"). I totally forgot I had this open issue on it.
Are you still seeing these sequences in 3.1.0+? If so, you should probably open a new issue... I'm going to close this one.
Using
vscode-jest
2.9.2, which should have #293 , andjest
23.6.0, which should have jestjs/jest#5909 , I am still seeing ANSI codes in failure messages.Is there more configuration I need to be doing to fix this? Did I misunderstand the expected result of the above changes?
(this is not a recent regression for me, it's been like this many months, I was just waiting for the recent 2.9.2 release to see if that fixed it)
Environment
node -v
: 10.9.0npm -v
: 6.2.0npm ls jest
ornpm ls react-scripts
(if you haven’t ejected): 23.6.0your vscode-jest settings if customized: N/A
Operating system: macOS 10.13.3
Prerequisite
npm run test
ornode_modules/.bin/jest
)yarn test
(which maps tojest
)Steps to Reproduce
The one line in the screenshot is all it takes for me.
Relevant Debug Info
Looks like
--no-color
is being provided to jest.I see two errors but am not sure if they are related:
(there are a few more
unexpected token
errors at different positions)Expected Behavior
Test failure messages are human-readable
Actual Behavior
Test failure messages are filled with
[39m
,[32m
, etcThe text was updated successfully, but these errors were encountered: