Skip to content

Releases: avajs/eslint-plugin-ava

v17.0.1

13 Jun 11:00

Choose a tag to compare

v17.0.0

20 May 05:59

Choose a tag to compare

Breaking

Improvements

  • Support t.snapshot() formatAsCodeBlock options 38cd4fd
  • Remove enhance-visitors dependency a867c89
  • test-title-format: Check template literal titles 41a1016

Fixes

  • use-true-false: Fix Object.hasOwn() not being flagged 82118fb
  • no-incorrect-deep-equal: Fix NaN, Infinity, and -Infinity not being flagged e4ce630
  • use-true-false: Fix in and instanceof not being flagged 9a8832c
  • no-incorrect-deep-equal: Fix negative number literals not being flagged dbb691b
  • no-identical-title: Fix duplicate not detected across string literal and template literal f418374
  • no-incorrect-deep-equal: Fix .skip variants not being flagged 0299697
  • prefer-async-await: Fix false positive on nested functions f2ae631
  • hooks-order: Fix serial hooks being ignored 03640ec
  • Don't crash or report false positives when a computed member expression is used as a test modifier 7c78018
  • use-t-well: Don't crash when a computed member expression is used 7b5cab1
  • use-t: Don't crash when a test call has no arguments 41caf01
  • prefer-t-regex: Don't crash or report when bare RegExp() is compared to a boolean 9f27e14
  • prefer-t-regex: Don't crash or suggest invalid fix when .test() is called without arguments a863404
  • use-t-throws-async-well: Fix autofix not offered for titled async tests affa778
  • Fix handling of t.skip 67bf495

v16.0.1...v17.0.0

v16.0.1

06 Apr 10:53

Choose a tag to compare

  • no-nested-tests: Fix false positive on tests following a nested pair 0a1218d
  • no-async-fn-without-await: Fix invalid error location end b596b27
  • use-t: Fix crash when macro object contains a spread element 9bea7fc
  • no-async-fn-without-await: Fix await in nested functions being counted as test-level await 90f7a0b
  • no-conditional-assertion: Ignore conditionals wrapping the entire test() call 2077c22

v16.0.0...v16.0.1

v16.0.0

10 Feb 14:10

Choose a tag to compare

Breaking

New rules

Improvements

  • Support TypeScript typed test pattern in all rules 14af035
  • Recognize alternative test object names in t.try() callbacks 6435768
  • Cache loadAvaHelper result to improve performance 98d7655
  • Fix monorepo support in project root detection 8e63d63
  • test-title: Add title validation checks 4e14de5
  • assertion-arguments: Detect error constructors passed as assertion messages d87de24
  • use-t-well: Suggest AVA equivalents for common assertion names from other test frameworks 449013a
  • no-unknown-modifiers: Forbid .always without after/afterEach b8c93c2
  • assertion-arguments: Detect swapped t.regex()/ t.notRegex() arguments 88e73a7
  • use-t-well: Allow calling t.context as a function be9d321
  • assertion-arguments: Validate t.plan() argument is a non-negative integer 7375d05
  • prefer-async-await: Add more optional chaining test cases af9be74
  • prefer-async-await: Handle optional chaining in .then() detection 75c49d0
  • no-import-test-files: Fix false positive for directory imports 1e06401
  • assertion-arguments: Recognize string concatenation as valid assertion message a31315a
  • use-true-false: Prefer t.true()/t.false() over t.is(…, true)/t.is(…, false) 66d4b15
  • assertion-arguments: Add test for destructured parameter as assertion message fb95ef2
  • use-test: Allow inline type imports 4f1403a
  • use-test: Support .mts and .cts TypeScript file extensions bd2274a
  • assertion-arguments: Fix crash when assertion message argument is an unresolvable variable 32965c3

v15.1.0...v16.0.0

v15.1.0

18 Jul 19:52

Choose a tag to compare

  • Disallow extra properties in rule options (#359) dfc0993

v15.0.1...v15.1.0

v15.0.1

11 May 08:08

Choose a tag to compare

v15.0.0

03 May 13:09

Choose a tag to compare

Breaking

v14.0.0...v15.0.0

v14.0.0

18 Jan 03:28

Choose a tag to compare

Breaking

  • Require Node.js 14 and ESLint 8 bd8c4c6

Fixes

  • prefer-t-regex: Prevent some type errors (#350) 40aaadc

v13.2.0...v14.0.0

v13.2.0

08 Jan 13:57
33dbbc7

Choose a tag to compare

What's Changed

Full Changelog: v13.1.0...v13.2.0

13.1.0

22 Oct 08:51
v13.1.0
f8a9575

Choose a tag to compare

Full Changelog: v13.0.0...v13.1.0