Skip to content

Releases: levibuzolic/eslint-plugin-no-only-tests

v3.3.0

15 Aug 11:55
ffda178
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.2.0...v3.3.0

v3.2.0

15 Aug 10:57
8fb57fc
Compare
Choose a tag to compare

What's Changed

  • Add option to test for methods like fit or xit by @sualko in #44

Development Changes

New Contributors

Full Changelog: v3.1.0...v3.2.0

v3.1.0

23 Oct 05:58
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.0.0...v3.1.0

v3.0.0

21 Jul 11:34
9887bd1
Compare
Choose a tag to compare

Added

  • Block scope matchers can accept a trailing * to optionally match blocks by prefix #35

Breaking

  • Block matchers no longer match prefixes of blocks by default, can now be configured via options #35

Other

Full Changelog: v2.6.0...v3.0.0

v2.6.0

28 Apr 11:05
a5c0bc6
Compare
Choose a tag to compare
  • Disable auto fixing by default, allow it to be optionally enabled. #26

v2.5.0

08 Apr 05:50
Compare
Choose a tag to compare
  • Add the ability to auto-fix violations #19 thanks @tgreen7

v2.4.0

04 Dec 01:46
b255d9a
Compare
Choose a tag to compare
  • Add support for defining 2 levels deep in blocks (ie. ava.default)
  rules: {
    'no-only-tests/no-only-tests': ['error', {
      block: ['ava.default'],
      focus: ['only']
    }]
  }

Will now raise lint errors for code that looks like:

ava.default.only(() => {})

v2.3.1

04 Dec 01:44
Compare
Choose a tag to compare
  • Bump js-yaml from 3.13.0 to 3.13.1 due to security vulnerability - #11

v2.3.0

04 Apr 03:55
c42e1de
Compare
Choose a tag to compare
  • 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.

v2.2.0

04 Apr 03:52
Compare
Choose a tag to compare