Closed greenkeeper[bot] closed 5 years ago
Merging #63 into master will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #63 +/- ##
=======================================
Coverage 84.11% 84.11%
=======================================
Files 4 4
Lines 170 170
Branches 32 32
=======================================
Hits 143 143
Misses 12 12
Partials 15 15
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 87e20a5...2a1049a. Read the comment docs.
The devDependency ava was updated from
1.4.1
to2.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
files
option now only accepts glob patterns. If you configured it with directories before, please add/**/*
to get the previous behavior.The
files
andsources
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 ahelpers
directory. Instead you can now specify glob paterns to find these 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 watchesava.config.js
files.AVA now also selects files ending with
.spec.js
when looking for tests, as well as looking intests
directories. 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
.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. 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.observable
function. c2d8218New features
Configurable printing depth
AVA now uses the
util.inspect.defaultOptions.depth
option 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
environmentVariables
object. a53ea15Other changes
UntitledMacro
andUntitledCbMacro
types, for macro functions that will never have a.title
function. Though really this just helped simplify the type definition. Thanks @qlonik! ebf4807test.skip(macro)
ba5cd80All changes
v1.4.1...v2.0.0
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.
e1572d9
2.0.0
2daf6a9
Bump dependencies
b1e54b1
By default, select test and helpers inside 'tests' directories
677578f
Replace individual lodash packages with the main package
a53ea15
Define environment variables to be injected in the test file processes
626e58c
2.0.0-rc.1
51433be
Implement helper for our ESLint plugin
c10e38c
Remove underline from Babel configuration validation errors
928ed14
Bump dependencies
98034fb
Make the object printing depth configurable (#2121)
f26634b
2.0.0-beta.2
80d72ff
Bump dependencies
5f4c96f
Further helper selection improvements
ba5cd80
Fix TypeScript definition allowing macro-without-title-using-tests to be skipped
13a89e1
Reduce size of logo in readme
There are 36 commits in total.
See the full diff
FAQ and help
There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).Your Greenkeeper bot :palm_tree: