0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/debug/DEBUGGING.md
Abraham Schilling ddb42431d1 build: configure prettier as formatter for json, yaml and markdown (#1930)
* build: configure pretter as formatter for most files

* chore: reformat code (#1931)

* chore: re-format all files

* chore: force run quality anaylsis test

Co-authored-by: Juan Picado @jotadeveloper <juanpicado19@gmail.com>

Co-authored-by: Juan Picado @jotadeveloper <juanpicado19@gmail.com>
2021-04-09 17:54:19 +02:00

677 B

Debuging Documentation

Debugging tests

Running a single test

yarn test test/integration/package.spec.ts --runInBand

Using --runInBand allows you to see the console.log prints, without that jest hidde them.

Display additional information

You can take advance of debug module used by many dependencies, eg:

  • supertest: DEBUG=superagent yarn test test/integration/package.spec.ts --runInBand
  • express: DEBUG=express:* yarn test test/integration/package.spec.ts --runInBand
  • nock: DEBUG=nock yarn test test/integration/package.spec.ts --runInBand
  • All of if: DEBUG=* yarn test test/integration/package.spec.ts --runInBand