If there is this documenttests/test.test.ts
:
describe('test-group', () => {
it('t1', async() => {
console.log('t1');
});
it('t2', () => {
console.log('t2');
});
});
I just want to run T2 inside, so I can do this:
npx jest tests/test.test.ts --testNamePattern="test-group t2"
Cross levels can be separated by spaces.
Related documents:https://jestjs.io/zh-Hans/doc…