This repository was archived by the owner on Mar 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Update ava to the latest version 🚀 #180
Open
greenkeeper
wants to merge
2
commits into
master
Choose a base branch
from
greenkeeper/ava-2.0.0
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
Author
Update to this version instead 🚀 Release Notes for 2.1.0Bug fixes
Enhancements
All changesThanksThank you @anishkny, @yovasx2 and @mihai-dinu. We couldn't have done this without you! Get involvedWe 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. CommitsThe new version differs by 9 commits.
See the full diff |
Contributor
Author
|
Contributor
Author
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The devDependency ava was updated from
1.4.1to2.0.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 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
filesoption now only accepts glob patterns. If you configured it with directories before, please add/**/*to get the previous behavior.The
filesandsourcesoptions 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
helpersdirectory as test helpers. Finding these files could be really slow, however, and it also meant you couldn't have tests inside ahelpersdirectory. 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
fixturesdirectories are no longer ignored, and will now be treated as test files. The watcher now also watchesava.config.jsfiles.AVA now also selects files ending with
.spec.jswhen looking for tests, as well as looking intestsdirectories. 08e99e5 b1e54b1The 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
.snapfile. However if you forget to commit this file and then run your CI tests, they won't fail because AVA quietly updates the.snapfile, 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. 0804107Assertion 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.observablefunction. c2d8218New features
Configurable printing depth
AVA now uses the
util.inspect.defaultOptions.depthoption when printing objects, so you can configure the depth. 98034fbSpecify environment variables in your AVA config
You can now specify environment variables in your config, using the
environmentVariablesobject. a53ea15Other changes
UntitledMacroandUntitledCbMacrotypes, for macro functions that will never have a.titlefunction. Though really this just helped simplify the type definition. Thanks @qlonik! ebf4807test.skip(macro)ba5cd80All changes
v1.4.1...v2.0.0Thanks
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 readmeThere are 36 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 🌴