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

@ -15,7 +15,7 @@
↓ todo on describe → should not fail
↓ todo on describe → should run
TODO Tests\Features\Todo - 28 todos
TODO Tests\Features\Todo - 29 todos
↓ something todo later
↓ something todo later chained
↓ something todo later chained and with function body
@ -45,6 +45,7 @@
// nested describe note
// test note
↓ todo on describe → todo block → it should not execute
↓ todo on describe with matching name → describe block → it should not execute
↓ todo on test after describe block
↓ todo with note on test after describe block
// test note
@ -80,6 +81,6 @@
PASS Tests\CustomTestCase\ParentTest
✓ override method
Tests: 38 todos, 3 passed (20 assertions)
Tests: 39 todos, 3 passed (21 assertions)
Duration: x.xxs

View File

@ -15,7 +15,7 @@
↓ todo on describe → should not fail
↓ todo on describe → should run
TODO Tests\Features\Todo - 28 todos
TODO Tests\Features\Todo - 29 todos
↓ something todo later
↓ something todo later chained
↓ something todo later chained and with function body
@ -45,6 +45,7 @@
// nested describe note
// test note
↓ todo on describe → todo block → it should not execute
↓ todo on describe with matching name → describe block → it should not execute
↓ todo on test after describe block
↓ todo with note on test after describe block
// test note
@ -80,6 +81,6 @@
PASS Tests\CustomTestCase\ParentTest
✓ override method
Tests: 38 todos, 3 passed (20 assertions)
Tests: 39 todos, 3 passed (21 assertions)
Duration: x.xxs

View File

@ -15,7 +15,7 @@
↓ todo on describe → should not fail
↓ todo on describe → should run
TODO Tests\Features\Todo - 28 todos
TODO Tests\Features\Todo - 29 todos
↓ something todo later
↓ something todo later chained
↓ something todo later chained and with function body
@ -45,6 +45,7 @@
// nested describe note
// test note
↓ todo on describe → todo block → it should not execute
↓ todo on describe with matching name → describe block → it should not execute
↓ todo on test after describe block
↓ todo with note on test after describe block
// test note
@ -80,6 +81,6 @@
PASS Tests\CustomTestCase\ParentTest
✓ override method
Tests: 38 todos, 3 passed (20 assertions)
Tests: 39 todos, 3 passed (21 assertions)
Duration: x.xxs

View File

@ -15,7 +15,7 @@
↓ todo on describe → should not fail
↓ todo on describe → should run
TODO Tests\Features\Todo - 28 todos
TODO Tests\Features\Todo - 29 todos
↓ something todo later
↓ something todo later chained
↓ something todo later chained and with function body
@ -45,6 +45,7 @@
// nested describe note
// test note
↓ todo on describe → todo block → it should not execute
↓ todo on describe with matching name → describe block → it should not execute
↓ todo on test after describe block
↓ todo with note on test after describe block
// test note
@ -80,6 +81,6 @@
PASS Tests\CustomTestCase\ParentTest
✓ override method
Tests: 38 todos, 3 passed (20 assertions)
Tests: 39 todos, 3 passed (21 assertions)
Duration: x.xxs