I have a test \'works with nested children\' within the file fix-order-test.js.
Running the below runs all the tests in the file.
jest fix-order-test
Jest documentation recommends the following:
If a test is failing, one of the first things to check should be whether the test is failing when it's the only test that runs. In Jest it's simple to run only one test - just temporarily change that
testcommand to atest.only
test.only('this will be the only test that runs', () => {
expect(true).toBe(false);
});
or
it.only('this will be the only test that runs', () => {
expect(true).toBe(false);
});