Skip to content

lowercase-name rule ignoreTopLevelDescribe option only applies to first describe in file #613

@overlookmotel

Description

@overlookmotel

The ignoreTopLevelDescribe option for lowercase-name rule, added in #611, seems to only apply to the first describe block in a file.

e.g. 'Booleans' gets flagged as a rule violation here:

describe('Strings', () => {
  it('are strings', () => {
    expect('abc').toBe('abc');
  });
});

describe('Booleans', () => {
  it('are booleans', () => {
    expect(true).toBe(true);
  });
});

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions