Packages

ava

8.4.0 · 7 Nov 2026MIT575.3k / weekRepositoryHomepagenpmAtom feed

Your version

112 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 3.x
  2. 3.6.0

    5 Apr 2020

    afterEach() and afterEach.always() hooks can now determine whether the test passed. Thank you @bunysae for contributing this! 8f312c0:

  3. 3.5.1 – 3.5.22 releases without a noteShow each
  4. 3.5.0

    1 Mar 2020

    When using ava debug, you can now specify the address or hostname the inspector is available through by using the --host option. Thanks to @DYefimov for contributing this! 13d6651

  5. 3.4.0

    23 Feb 2020
    • The t.throws() and t.throwsAsync() assertions can now be called with undefined as the second argument. Previously, if you wanted to set an assertion message but did not want to provide any expectations for the thrown error you had to pass null. That's still allowed, of course. d0e2161 @stavalfi

    • ava.config.js files once again work with our @ava/typescript package f4d4edd

    • Our TypeScript definition no longer references @types/node 7a1dacf

  6. 3.3.0

    9 Feb 2020

    AVA can now load ESM test files! 🎉Thank you @arlac77 for making this happen. Check our updated ES Modules recipe for details.

  7. 3.2.0

    2 Feb 2020

    This release improves the integration with the new @ava/typescript package, which allows AVA to load pre-compiled TypeScript files.

  8. 3.1.0

    26 Jan 2020

    AVA can now load pre-compiled TypeScript files!

  9. 3.0.0

    19 Jan 2020
    • Breaking

      **/__tests__/**/__helper__/**/*

    • Breaking

      **/__tests__/**/__helpers__/**/*

    • Breaking

      **/__tests__/**/__fixture__/**/*

  10. 2.x
  11. 2.4.0

    16 Sep 2019
  12. 2.3.0

    18 Aug 2019
    • We've fixed some bugs to improve watch mode. ffa62ce 9e8d28f

    • AVA now prints an error when it receives non-existent test files on the command line. f01d05f

    • When using the TAP reporter, remaining tests are now included in failed test count. Failed hooks are no longer treated as test failures, and logs are printed. 8628976

  13. 2.2.0

    8 Jul 2019

    You can now specify an alternative config file, using the --config CLI argument. This is useful if you want to run unit tests separately from integration tests, since you can have a config file specific to your integration tests which specifies different glob patterns. 2dae2bf

  14. 2.1.0

    10 Jun 2019
    • AVA's TypeScript definition now explicitly references the Node.js definition bb44da7

    • Did you know you can provide human-readable timeout values? We've now documented this. 486acaf

    • We're now including all stack trace lines in the TAP output (though we still pre-process them). ac212ba

  15. 2.0.0

    1 Jun 2019
    • We've added UntitledMacro and UntitledCbMacro types, for macro functions that will never have a .title function. Though really this just helped simplify the type definition. Thanks @qlonik! ebf4807

    • The dependency tracking in watch mode now respects custom require hooks you install in the worker processes. Thanks @lo1tuma! cb4c809

    • The TypeScript definition once again allows test.skip(macro) ba5cd80

  16. 1.x
  17. 1.4.1

    27 Mar 2019
    • Filtered tests (when using --match, .skip() or .only()) are no longer included in the list of pending tests when timeouts occur or when you interrupt a test run. Thanks @vancouverwill! 23e302a

    • We're now shimming all TTY methods in the worker processes, thanks to @okyantoro. c1f6fdf

  18. 1.4.0

    24 Mar 2019
  19. 1.3.1

    5 Mar 2019
    • We've fixed a rather embarrasing bug with t.throws() and t.throwsAsync(). If you'd set a code expectation to a number we never actually checked that the thrown error had such a code! Thanks to @qlonik for both spotting and fixing this. 82daa5e

    • 1.2.0 contained a regression which meant that if you faked clearTimeout(), you'd break AVA. That's now been fixed. 40f331c

    • Snapshot files are now recognized as source files, so if you're using watch mode and you delete one, AVA won't rerun all your test files. d066f6f

  20. 1.3.0

    5 Mar 2019
  21. 1.2.1

    5 Feb 2019

    This is a bug fix release. In very large projects, the options send to worker processes would exceed limits on process argument size. We're now sending the options via the inter-process communication channel. 3078892

  22. 1.2.0

    27 Jan 2019
    • We're no longer truncating multi-line error messages 72e0762

    • Unexpected errors in the throws assertions are now reported with the correct stack trace ad087f2

    • The Debugging with VSCode recipe has been updated with the correct workspaceFolder variable 0a5fe42 and --serial argument placement edfc005

  23. 1.1.0

    13 Jan 2019
    • t.log() now works in hooks d187712

    • Error output for improper usage of t.throws() once again links to the correct documentation dc552bc

    • We've added a section on webpack aliases to the Babel recipe c3bcbf2

  24. 1.0.1

    15 Dec 2018
    • Breaking

      .serial must be used at the beginning, e.g. test.serial().

    • Breaking

      .only and .skip must be used at the end, e.g. test.skip(). You cannot combine them.

    • Breaking

      .failing must be used at the end, but can be followed by .only and .skip, e.g. test.cb.failing() and test.cb.failing.only().

  25. 1.0.0

    14 Apr 2016
  26. 0.25.x
  27. 0.25.0

    26 Jan 2018
    • We now detect @std/esm in AVA's "require" configuration and will use it to require subsequent modules 72c53be

    • t.log() now supports multiple arguments 4f896c2

    • AVA no longer globally modifies Error.stackTraceLimit in the worker processes f00f3c4

  28. 0.24.x
  29. 0.24.0

    27 Nov 2017

    This is a pretty small release, but a great one if you're solely developing for Node.js 8.3 or above.

  30. 0.23.x
  31. 0.23.0

    24 Oct 2017

    AVA will now set process.env.NODE_ENV to 'test', as long as the NODE_ENV environment variable has not already been set. 42e7c74

  32. 0.22.x
  33. 0.22.0

    15 Aug 2017
  34. 0.21.x
  35. 0.21.0

    13 Jul 2017
    • Additional arguments can be passed when profiling 05bfafe

    • Though not officially supported, AVA now works better with Wallaby.js’ diff view 3f6e134

    • Expanded the Webstorm recipe to include setup instructions using npm 2b4e35d

  36. 0.20.x
  37. 0.20.0

    28 Jun 2017
    • Argument objects can only be compared to Argument objects

    • Functions are compared by name and other enumerable properties

    • Promises are compared by their constructor and additional enumerable properties

  38. 0.19.x
  39. 0.19.1

    10 Apr 2017
    • Prevent MaxListenersExceededWarning from being emitted if a test file contains more than 10 tests d27bc8f

    • Fix t.end() not being available in the TypeScript definition for callback tests bd81ef4

    • Fix t.context not being available in the Flow definition for beforeEach() and afterEach() hooks d169f0e

  40. 0.19.0

    5 Apr 2017
  41. 0.18.x
  42. 0.18.2

    18 Feb 2017

    Many bug fixes for snapshot testing, magic assert, and the type definitions: v0.18.1...v0.18.2

  43. 0.18.1

    3 Feb 2017

    Quick bug fix: Remove t.is and t.not from enhanced assertion patterns to provide correct output on assertion failure.

  44. 0.18.0

    2 Feb 2017
    • Removed

      Removed deprecated assertions (t.ok, t.notOk, t.same, t.notSame). If you haven’t migrated yet, you can do so automagically with our codemod. c010fd7

    • Removed

      Removed the --source flag. Use the package.json config instead. 34bebc4

    • Support symlinked test files. 033d4dc

  45. 0.17.x
  46. 0.17.0

    17 Nov 2016
    • Removed

      Removed the --require CLI flag. Configure it in package.json instead. 17119bc

    • Deprecated

      Deprecated t.error() alias for t.ifError(). It will be removed in AVA 1.0.0. Just use t.ifError(). 28bb0d5 (We have an automatic migration script if you're using t.error())

    • We now have a script to automatically migrate from tape to AVA.

  47. 0.16.x
  48. 0.16.0

    6 Aug 2016
  49. 0.15.x
  50. 0.15.2

    4 Jun 2016

    Avoids deprecation warning from loud-rejection.

  51. 0.15.1

    26 May 2016

    Bug fix: The new test naming conventions introduced in 0.15.0 were not being honored.

  52. 0.15.0

    25 May 2016
  53. 0.14.x
  54. 0.14.0

    7 Apr 2016
    • Deprecated

      A number of assertion methods have been renamed for clarity. The old methods still exist, but have been deprecated, and will be removed in a future release (e9c6cc2, a7f50eb). We have published ava-codemods to assist in automatically renaming these assertions in your tests.

    • Added an idle timeout option to prevent test runs from hanging indefinitely. The test run is considered timed out when no test results have been received for the specified interval. d1a3669

  55. 0.13.x
  56. 0.13.0

    10 Mar 2016
  57. 0.12.x
  58. 0.12.0

    18 Feb 2016
    • Breaking

      **** t.doesNotThrow() is renamed to t.notThrows() to be consistent with the other assert methods. t.doesNotThrow() will be removed in AVA 1.0.0. a35d130

    • [maybe breaking] We removed the undocumented t.regexTest() assert method and added t.regex(). t.regexTest() had the wrong argument order. t.regex() follows the same argument order as other assert methods. a10b9e8

    • More performance improvements! (∩`-´)⊃━☆゚.*・。゚ e010816 341c84b 9b0d5f7

  59. 0.11.x
  60. 0.11.0

    23 Jan 2016
    • Performance improvements (つ◕౪◕)つ━☆゚.*・。゚#461

    • Default to the verbose reporter on CI servers. 21a60f9

    • Add shortflags to the CLI. 5d36a80

  61. 0.10.x
  62. 0.10.0

    15 Jan 2016
    • Breaking

      .babelrc files will now be ignored when transpiling tests. This will be a breaking change for some, and fix major problems for others. The ability to configure test transpilation will be restored in a future update. 5f5be31

    • New Spanish translation of the documentation. 37cd685

    • Started a collection of recipes for common scenarios / best practices. 4d96a3e

  63. 0.9.x
  64. 0.9.2

    14 Jan 2016

    Work around broken Babel release. See #425.

  65. 0.9.1

    29 Dec 2015

    Correctly handle promises rejected with non-errors. bef1dfb

  66. 0.9.0

    29 Dec 2015
    • Breaking

      Deeply recurse directories. Previously AVA only looked for test files in the immediate subdirectory. Now it will look in subdirectories at any level. 72e87d9

    • Ignore files in directories named fixtures and helpers. f6cef7f

    • Cache Babel transpiled code. This will improve startup performance considerably. 0daec3e

  67. 0.8.x
  68. 0.8.0

    14 Dec 2015
    • Don't use the user local Babel when available. Instead always use the the built-in Babel. This will let you use Babel 6 in your project even though we don't yet support Babel 6. d0c370a

    • Add ability to skip individual assertions with t.skip(). 357622c

    • Node.js-style --require CLI argument. 6081389

  69. 0.7.x
  70. 0.7.0

    30 Nov 2015
    • Test methods are now chainable. You can for example do test.serial.skip(). d874ec9

    • Use the local AVA version if available when running $ ava from the CLI. 2f7ac92

    • Guard against time manipulation by mocking modules like Sinon. b88c2ba

  71. 0.6.x
  72. 0.6.1

    24 Nov 2015

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.