Skip to content
| Marketplace
Sign in
Visual Studio Code>Testing>Jest ReporterNew to Visual Studio Code? Get it now.
Jest Reporter

Jest Reporter

Dowesoft (Edwin Ramiro Ospina Ruiz)

|
230 installs
| (0) | Free
Run tests with Jest and view results interactively in a webview.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Jest Reporter

This is the README for "Jest Reporter". Used only if you are working with the Jest local in the project.

It is running './node_modules/.bin/jest'

test1

Install

##Angular testing con JEST

  1. Remover cualquier referencia de Jasmine / Karma en el package.json
npm remove '<karma karma-chrome-launcher...>'
  1. Instalar Jest
npm install --save-dev jest jest-preset-angular @types/jest
  1. Crear el setup-jest.ts en la carpeta root del proyecto y el contenido es el siguiente
import 'jest-preset-angular/setup-jest';
  1. Agregar en el package.json, la configuración de Jest
"jest": {
    "preset": "jest-preset-angular",
    "setupFilesAfterEnv": [
      "<rootDir>/setup-jest.ts"
    ],
    "globalSetup": "jest-preset-angular/global-setup"
  }
  1. Configurar JEST en tsconfig.json y tsconfig.spec.json
"types": [
  "jest"
]
  1. Configurar los comandos para ejecutar las pruebas en el package.json
"test": "jest",
"test:watch": "jest --watchAll",
  1. Remover karma.config.js y el archivo test.ts

Features

Add a menu in the explorer, it allows run the test using Jest (.spec.ts, folders).

For example if there is selected a subfolder under your folder project you will run all test inside of subfolder:

test1

Add a menu in file editor (.spec.ts), it allows run the test using Jest (.spec.ts, folders).

test2

Release Notes

1.5.0

Integration with the VS Code test panel

1.2.3

Added error handler

1.1.0

Added run test again Added show only errors

1.0.2

Add images

1.0.1

Initial release of ...

For more information

@autor (edwinandeka@gmail.com) Edwin Ramiro Ospina Ruiz

#Contact Us

  • Dowesoft
  • Github

Thanks!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft