Umesh
Umesh

Reputation: 35

How to run specific test suite in jest-puppeteer

I wanted to run specific test suite in jest-puppeteer for UI automation. I am able to run the specific test using below.

jest -t test_name

where test_name is from the "it" not from "describe" without quote.

Is there any other cmd to run all the test under describe too.

Upvotes: 2

Views: 2390

Answers (1)

Yevhen Laichenkov
Yevhen Laichenkov

Reputation: 8652

Run tests that match this spec name (match against the name in describe or test, basically).

jest -t name-of-it
jest -t "name-of-describe"

Upvotes: 3

Related Questions