Very simple, I want to run just one test with Jest.
I put it.only or describe.only but it still runs a whole lot of tests.
I think it runs
it.only and describe.only work only for the module they are in. If you are having problems to filter tests in multiple files, you can use jest -t name-of-spec, filtering tests that match the spec name (match against the name in describe or test).
Source: https://facebook.github.io/jest/docs/en/cli.html
For example, I focus the test which I'm currently writing like this (with the test script in the package.json):
npm test -- -t "test foo"