Update ava to the latest version π
The devDependency ava was updated from 0.25.0 to 1.3.0.
This version is not covered by your current version range.
If you donβt accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
Release Notes for 1.3.0
Bug fixes
- We've fixed a rather embarrasing bug with
t.throws()andt.throwsAsync(). If you'd set acodeexpectation 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
New features
You can now use require() in ava.config.js files to load non-ES modules. 334e15b
All changes
Thanks
Thank you @itaisteinherz, @jdalton, @kagawagao, @KompKK, @SleeplessByte, @Chrisyee22 and @qlonik for helping us with this release. We couldn't have done this without you!
Get involved
We welcome new contributors. AVA is a friendly place to get started in open source. We have a great article on getting started contributing and a comprehensive contributing guide.
Commits
The new version differs by 252 commits.
b0fadb41.3.09600966Bump dependencies82daa5eAssert on expected error code, even when a number1e3b072Documenttimeoutconfigurationd97f11dImprove pronunciation examples40f331cFix unbound reference to clearTimeout334e15bSupport require() in config files5751226Added few tests for lib/chalk.js7d10446Fix link to Babel recipe565822eUpdate esm package detection2fce19fRemove thetypingsfield in package.jsond066f6fRecognize snapshot files as source files65133a81.2.13078892Send options to worker process over IPC010914b1.2.0
There are 250 commits in total.
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot :palm_tree:
- The
devDependencyava was updated from0.25.0to1.3.1.
Update to this version instead π
Release Notes for 1.3.1
Bug fixes
- We've fixed a rather embarrasing bug with
t.throws()andt.throwsAsync(). If you'd set acodeexpectation 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
New features
You can now use require() in ava.config.js files to load non-ES modules. 334e15b
All changes
Thanks
Thank you @itaisteinherz, @jdalton, @kagawagao, @KompKK, @SleeplessByte, @Chrisyee22 and @qlonik for helping us with this release. We couldn't have done this without you!
Get involved
We welcome new contributors. AVA is a friendly place to get started in open source. We have a great article on getting started contributing and a comprehensive contributing guide.
- The
devDependencyava was updated from0.25.0to1.4.0.
Update to this version instead π
Release Notes for 1.4.0
Focusing power-assert
AVA comes with power-assert built-in, giving you more descriptive assertion messages. However it's been confusing to understand which assertions come with power-assert. To address this we've added the new t.assert() assertion. It's now the only assertion that is power-assert enabled. The assertion passes if called with a truthy value. Consider this example:
test('enhanced assertions', t => {
const a = /foo/;
const b = 'bar';
const c = 'baz';
t.assert(a.test(b) || b === c);
});AVA will output:
6: const c = 'baz'; 7: t.assert(a.test(b) || b === c); 8: });Value is not truthy:
false
a.test(b) || b === c
=> falseb === c
=> falsec
=> 'baz'b
=> 'bar'a.test(b)
=> falseb
=> 'bar'
a
=> /foo/
Our ESLint plugin has been updated to support this new assertion. Many thanks to @eemed for implementing this! 9406470
Watch mode
Watch mode now prints the available commands. Thanks @KompKK! cd256ac
Bug fixes
- 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
Documentation updates
- We've added a note to say that, by default, AVA does not have a default test timeout. Thanks @amokmen! 99a10a1
All changes
Thanks
Thank you @eemed, @KompKK, @vancouverwill, @okyantoro and @amokmen. We couldn't have done this without you!
Get involved
We welcome new contributors. AVA is a friendly place to get started in open source. We have a great article on getting started contributing and a comprehensive contributing guide.
Commits
The new version differs by 7 commits.
20db4741.4.00154a7fBump dependencies9406470Only apply power-assert to new t.assert() assertionc1f6fdfShim all tty methods23e302aDon't report filtered tests as pending99a10a1Document that there is no default timeoutcd256acPrint commands in watch mode
See the full diff
- The
devDependencyava was updated from0.25.0to1.4.1.
Update to this version instead π
Release Notes for 1.4.1
Focusing power-assert
AVA comes with power-assert built-in, giving you more descriptive assertion messages. However it's been confusing to understand which assertions come with power-assert. To address this we've added the new t.assert() assertion. It's now the only assertion that is power-assert enabled. The assertion passes if called with a truthy value. Consider this example:
test('enhanced assertions', t => {
const a = /foo/;
const b = 'bar';
const c = 'baz';
t.assert(a.test(b) || b === c);
});AVA will output:
6: const c = 'baz'; 7: t.assert(a.test(b) || b === c); 8: });Value is not truthy:
false
a.test(b) || b === c
=> falseb === c
=> falsec
=> 'baz'b
=> 'bar'a.test(b)
=> falseb
=> 'bar'
a
=> /foo/
Our ESLint plugin has been updated to support this new assertion. Many thanks to @eemed for implementing this! 9406470
Watch mode
Watch mode now prints the available commands. Thanks @KompKK! cd256ac
Bug fixes
- 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
Documentation updates
- We've added a note to say that, by default, AVA does not have a default test timeout. Thanks @amokmen! 99a10a1
All changes
Thanks
Thank you @eemed, @KompKK, @vancouverwill, @okyantoro and @amokmen. We couldn't have done this without you!
Get involved
We welcome new contributors. AVA is a friendly place to get started in open source. We have a great article on getting started contributing and a comprehensive contributing guide.
- The
devDependencyava was updated from0.25.0to2.0.0.
Update to this version instead π
Release Notes for 2.0.0
Breaking changes
AVA now requires at least Node.js 8.9.4
Per the Node.js release schedule, the 6.x releases reach end of live on April 30th. Consequently we've removed support in AVA. We are now testing with Node.js 12 though. 3a4afc6
Test file and helper selection
We've been working on simplifying how test files and helpers are selected. First off, the files option now only accepts glob patterns. If you configured it with directories before, please add /**/* to get the previous behavior.
The files and sources options must now be arrays containing at least one pattern. It's no longer possible to override a default exclusion pattern, but we're looking at making these configurable separately.
AVA used to treat all files inside a helpers directory as test helpers. Finding these files could be really slow, however, and it also meant you couldn't have tests inside a helpers directory. Instead you can now specify glob paterns to find these helpers:
{
"ava": {
"helpers": [
"**/helpers/**/*"
]
}
}Test files starting with an underscore are still recognized as helpers.
Files inside fixtures directories are no longer ignored, and will now be treated as test files. The watcher now also watches ava.config.js files.
AVA now also selects files ending with .spec.js when looking for tests, as well as looking in tests directories. 08e99e5 b1e54b1
The CLI now only takes file paths, not glob patterns.
We'd like some help updating our ESLint plugin as well.
Snapshots in CI
When you run tests locally and add a new snapshot, AVA automatically updates the .snap file. However if you forget to commit this file and then run your CI tests, they won't fail because AVA quietly updates the .snap file, just like it does locally.
With this release, AVA will fail the t.snapshot() assertion if it is run in CI and no snapshot could be found. 0804107
Assertion messages must be strings
AVA now enforces assertion messages to be strings. The message is only used when the assertion fails, and non-string values may cause AVA to crash. You may see test failures if you were accidentally passing a non-string message. 49120aa
Flow type definitions
We've decided to remove the Flow type definitions from AVA itself. We don't have anybody to maintain them and consequently they've become a blocker when adding features to AVA. c633cf0
We've set up a new repository from which we'll publish the definitions, but we need your help setting it up. If you use AVA and Flow, please join us in avajs/flow-typed#1.
Observable typing
Test implementations may return observables. We've updated our TypeScript definition to require these to have a Symbol.observable function. c2d8218
New features
Configurable printing depth
AVA now uses the util.inspect.defaultOptions.depth option when printing objects, so you can configure the depth. 98034fb
Specify environment variables in your AVA config
You can now specify environment variables in your config, using the environmentVariables object. a53ea15
Other changes
- We've added
UntitledMacroandUntitledCbMacrotypes, for macro functions that will never have a.titlefunction. 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 - AVA now exposes some methods to our ESLint plugin, allowing our plugin to support the new test & helper file selection. 51433be
All changes
Thanks
Thank you @StoneCypher, @LukasHechenberger, @lo1tuma, @htor, @alexisfontaine and @grnch. We couldn't have done this without you!
Get involved
We welcome new contributors. AVA is a friendly place to get started in open source. We have a great article on getting started contributing and a comprehensive contributing guide.
Commits
The new version differs by 36 commits.
e1572d92.0.02daf6a9Bump dependenciesb1e54b1By default, select test and helpers inside 'tests' directories677578fReplace individual lodash packages with the main packagea53ea15Define environment variables to be injected in the test file processes626e58c2.0.0-rc.151433beImplement helper for our ESLint pluginc10e38cRemove underline from Babel configuration validation errors928ed14Bump dependencies98034fbMake the object printing depth configurable (#2121)f26634b2.0.0-beta.280d72ffBump dependencies5f4c96fFurther helper selection improvementsba5cd80Fix TypeScript definition allowing macro-without-title-using-tests to be skipped13a89e1Reduce size of logo in readme
There are 36 commits in total.
See the full diff