Fix an issue where a describe block will prevent a beforeEach call from executing

This commit is contained in:
jshayes
2024-10-11 21:24:08 -04:00
parent 3f65af9fdf
commit 0c57142c03
4 changed files with 21 additions and 6 deletions

View File

@ -96,3 +96,15 @@ describe('depends on describe using with', function () {
expect($foo + $foo)->toBe(6);
})->depends('foo');
})->with([3]);
describe('with test after describe', function () {
beforeEach(function () {
$this->count++;
});
describe('foo', function () {});
it('should run the before each', function () {
expect($this->count)->toBe(2);
});
});