Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule ideas #293

Open
18 tasks
scagood opened this issue Jun 7, 2024 · 0 comments
Open
18 tasks

Rule ideas #293

scagood opened this issue Jun 7, 2024 · 0 comments

Comments

@scagood
Copy link

scagood commented Jun 7, 2024

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

  • prefer 'node:assert/strict' (Originally from prefer-import/assert-strict: new rule to prefer import 'node:assert/strict' #59)
  • assert "actual" argument cant be constant/primative (Originally from Rule idea: enforce first arg of assert.x cannot be a string  #69)
  • 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
  • require await for "assert.rejects", and "assert.doesNotReject"
  • require await for async "test", "it", "describe", "suite" functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants