Update ava to the latest version π
Version 0.23.0 of ava was just published.
| Dependency | ava |
|---|---|
| Current Version | 0.22.0 |
| Type | devDependency |
The version 0.23.0 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.
It might be worth looking into these changes and trying to get this project onto the latest version of ava.
If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you donβt have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.
Release Notes
0.23.0Highlights π΄
NODE_ENV=test β¨
AVA will now set process.env.NODE_ENV to 'test', as long as the NODE_ENV environment variable has not already been set. 42e7c74
Improved snapshot storage location π
Snapshots are stored alongside your test files. This is great when your test file is executed directly but say if you're using TypeScript to precompile your test file AVA would store the snapshots in your build directory. In this release, if source maps are available, AVA determines the original test file location and uses that to store the snapshots.
You can also specify where snapshots are stored through the snapshotLocation option in the package.json file. 7fadc34
Matching anonymous tests π΅οΈ
--match='*' now matches all tests, including those without a title. 1df502d
Miscellaneous π
- The verbose logger now only displays the timestamp when in watch mode 1ea758f
- Anonymous functions are now included in stack traces c72f4f2
- Concurrency is now capped at
2in CI environments 3f81fc4 - AVA no longer calls
Bluebird.longStackTraces(). If you're using Bluebird you may want to call this yourself using arequirescript. ebf78b3 61101d9 - There's a new recipe for endpoint testing using Mongoose c9fe8db
- The browser testing recipe has been updated with an example of exposing global variables, such as jQuery f43d5ae
t.log()is now supported in the Flow and TypeScript type definitions 64b7755t.titleis now supported in the TypeScript type definitions 3c8b1bet.snapshot()now has a better Flow type definition ded7ab8
All changes π
Thanks π
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 30 commits.
3b81e2c0.23.03f81fc4Limit concurrency to 2 in a CI environment1cb9d4fAdjust NODE_PATH test to fix linting issue1ea758fOnly display timestamp in verbose logger if watch mode is active (#1557)c72f4f2Include anonymous functions in stacktraces (#1508)eebf26eAdd Awesome mentioned badgef43d5aeRecipe instructions for making jQuery available in browser (#1543)68ce4b8Update tsconfig.json docs link in the TS recipe837b0ddFix TypeScript recipe typo (#1549)2349316Update package-lock with changes in #1407bb91862Version warning when local version is behind (#1407)42e7c74Set NODE_ENV to to 'test' if not already set (#1523)64b7755Add t.log() for Flow and TypeScript (#1538)8955e15Lint test fixturesfa4f73cUpdate to [email protected]
There are 30 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: