Skip to content

jest/valid-title Correctness

What it does

Checks that the title of Jest blocks are valid by ensuring that titles are:

  • not empty,
  • is a string,
  • not prefixed with their block name,
  • have no leading or trailing spaces

Example

javascript
describe("", () => {});
describe("foo", () => {
  it("", () => {});
});
it("", () => {});
test("", () => {});
xdescribe("", () => {});
xit("", () => {});
xtest("", () => {});

References

Released under the MIT License.