Skip to content

Only the first describe block is nested under the parent one #25

@ghost

Description

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

  • method2
  • Package
    • method1

But I expect

  • Package
    • method1
    • method2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions