Closed mpareja closed 2 years ago
The following test passes with jest but not jest-light-runner. The beforeAll behaviour appears to be correct, though.
beforeAll
describe('beforeEach execution order', () => { const calls = [] beforeEach(() => { calls.push('outer') }) describe('nested', () => { beforeEach(() => { calls.push('inner') }) it('expect outer beforeEach before inner', () => { expect(calls).toEqual(['outer', 'inner']) }) }) })
Thanks! I'll fix this in the next few days, unless you want to open a pull request 🙂
Fixed by #44
The following test passes with jest but not jest-light-runner. The
beforeAll
behaviour appears to be correct, though.