1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-24 21:15:51 +01:00
verdaccio/debug/DEBUGGING.md
Juan Picado a7ba76423e refactor: test api refactor (#1826)
* test: add test for whoami

* Update middleware.ts

* test for user api

* more test for user api

* remove repeated code

* refactor

* Update index.spec.ts

* add package test

refactor others

* chore: upgrade deps

* chore: add test for package

* chore: update test

* update lock file

* Update ci.yml

* Update ci.yml

* Update package.spec.ts

* chore: update ci settings

* chore: update deps

* chore: update test
2021-04-09 17:54:11 +02:00

680 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