samedi 1 décembre 2018

jest shows only one test suite

I'm testing my library with jest, and have a file with several describe calls at the first layer, but when I run "npm test", It reports: "Test Suites: 1 passed, 1 total" "Tests: 26 passed, 26 total"

Why isn't it reporting several test suites?

As far as I can tell, jest's describe function should create its own test suite, but somehow they're all being combined...

From the jest API, "describe(name, fn) creates a block that groups together several related tests in one test suite"

Aucun commentaire:

Enregistrer un commentaire