Very often I come across a situation where I’d like to only run a certain subset of tests in a describe block, usually when I’m trying to debug some code.

Let’s say the describe block you want to run contains the word “Fizz Buzz”

describe('Fizz Buzz', () => {
    // your tests here
})

You can run all describe blocks that match a regex pattern

jest --testNamePattern 'Fizz Buzz'

Or simply use the alias -t instead

jest -t 'Fizz Buzz'

Reference: Jest CLI documentation