Skip to content

v2.3.0

Compare
Choose a tag to compare
@levibuzolic levibuzolic released this 04 Apr 03:55
c42e1de
  • Allow test block names to be specified in options - #10

If you use a testing framework that uses an unsupported block name, or a different way of focusing test (something other than .only) you can specify an array of blocks and focus methods to match in the options.

{
  "rules": {
    "no-only-tests/no-only-tests": ["error", {"block": ["test", "it", "assert"], "focus": ["only", "focus"]}]
  }
}

The above example will catch any uses of test.only, test.focus, it.only, it.focus, assert.only and assert.focus.