Fix an issue where beforeEach/afterEach functions were called on other describe blocks with the same name

This commit is contained in:
jshayes
2024-10-12 01:06:16 -04:00
parent 709ecb1ba2
commit b5b8fab09b
17 changed files with 1443 additions and 86 deletions

View File

@ -79,3 +79,17 @@ describe('describe blocks', function () {
})->repeat(times: 2);
})->repeat(times: 3);
});
describe('matching describe blocks', function () {
describe('describe block', function () {
it('should repeat the number of times specified in the parent describe block', function () {
expect(true)->toBeTrue();
});
})->repeat(times: 3);
describe('describe block', function () {
test('should not repeat the number of times of the describe block with the same name', function () {
expect(true)->toBeTrue();
});
});
});