Skip to content

Rule ideas #293

Open
Open
@scagood

Description

@scagood

Here is a list of possible additional rules for inclusion here:

assert:

test:

  • no conditional in test (if/switch)
  • no "test.skip", "it.skip", "describe.skip", "suite.skip"
  • no "test.todo", "it.todo", "describe.todo", "suite.todo"
  • no "test.only", "it.only", "describe.only", "suite.only"
  • no empty name test(''), suite(''), etc
  • no duplicate test names
  • no empty test functions
  • no-setup-in-describe
  • no missing "before", "after", "beforeEach", "afterEach" functions
  • test hooks in order ("before", "beforeEach", "afterEach", "after")
  • no missing "test", "it", "describe", "suite" functions
  • no return in "test", "it", "describe", "suite" functions
  • no async test without await
  • maximum assertion count

--experimental-strip-types:

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