Only the first describe block is nested under the parent one. The other nested blocks are added to the top level.
Example:
describe('Package', function () {
beforeEach(function () {
console.log('beforeEach')
});
describe('method1', function () {
it('does something', function () {
console.log('method1')
});
});
describe('method2', function () {
it('does something', function () {
console.log('method2')
});
});
});
It produces
But I expect
Only the first describe block is nested under the parent one. The other nested blocks are added to the top level.
Example:
It produces
But I expect