Skip to content

jest/no-identical-title doesn't report if using backticks #232

@himynameisdave

Description

@himynameisdave

Just checked and it appears that jest/no-identical-title doesn't report an error when specifying the title using backticks (even when not using string interpolation).

Error:

describe('an odd case where identical titles are not reported', () => {
    it('this works as expected', () => {
        //  ...test code here
    });
    it('this works as expected', () => {
        //  ...test code here
    });
});

Not reported:

describe('an odd case where identical titles are not reported', () => {
    it(`this does not work as expected`, () => {
        //  ...test code here
    });
    it(`this does not work as expected`, () => {
        //  ...test code here
    });
});

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