If the context is modified in the thread tasks (beforeEach, test, and afterEach), the context object of the afterAll method will be wrong. The context will be the context object as it existed in the beforeAll method... the modified context is never shared back to the parent.
If the context is modified in the thread tasks (
beforeEach
,test
, andafterEach
), the context object of theafterAll
method will be wrong. The context will be the context object as it existed in thebeforeAll
method... the modified context is never shared back to the parent.