Vscode-jest: Output does not expand to the complete output in test Summary

Created on 24 Nov 2019  路  3Comments  路  Source: jest-community/vscode-jest

Environment

  1. node -v: v12.13.0
  2. npm -v: 6.12.1
  3. npm ls jest or npm ls react-scripts (if you haven鈥檛 ejected):
  4. Vscode 1.40.1
[email protected] C:\_SSD_DEV\ionic\my_project
`-- [email protected] 
  1. your vscode-jest settings if customized:

    • jest.pathToJest? npm run test -- --silent --coverage --watchAll

    • jest.pathToConfig? ./jest.config.js

    • anything else that you think might be relevant?

jest.config.js

module.exports = {
  preset: 'jest-preset-angular',
  setupFilesAfterEnv: ['<rootDir>/src/setupJest.ts'],
  transformIgnorePatterns: ['<rootDir>/node_modules/(?!@ionic|@saninn|@ngrx)'],
  coverageReporters: process.env.CI ? ['text'] : ['lcov'],
  coveragePathIgnorePatterns: ['/node_modules/', 'package.json', '<rootDir>/src/test.ts', './manual-plugins/'],
  testPathIgnorePatterns: ['/node_modules/', './src/test.ts', './plugins/', '<rootDir>/coverage/', './manual-plugins/'],
  modulePathIgnorePatterns: ['<rootDir>/coverage/', '<rootDir>/plugins/'],
  collectCoverage: true,
  coverageDirectory: './coverage',
  collectCoverageFrom: ['.src/**/*.ts']
};
  1. Operating system: Windows 10

Prerequisite

  • are you able to run jest test from command line? Yes
  • how do you run your tests from command line? npm run test -- --silent --coverage --watchAll

Expected Behavior

Jest output text should be visible in the complete width of the output tab in VScode

Actual Behavior

Output is truncated in several parts
image

It happens just for the Summary part, the first output is correctly rendered.

image

Most helpful comment

Just wanted to say we've been encountering the same problem. Funnily enough it seems to only mangle the output for test failures (ironically the most important part).
image

All 3 comments

can you create a sample repo to help us diagnose?

I also encounter this issue. It happens with any jest project.

Just wanted to say we've been encountering the same problem. Funnily enough it seems to only mangle the output for test failures (ironically the most important part).
image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

offero picture offero  路  4Comments

ryanlittle picture ryanlittle  路  3Comments

orta picture orta  路  5Comments

somewhatabstract picture somewhatabstract  路  4Comments

orta picture orta  路  4Comments