Skip to content

Commit 9600966

Browse files
authored
Bump dependencies
`tap@^12.5` caused test failures on my machine, so I'm selecting `~12.4` for now. A dependency update means Node.js 11 now writes experimental warnings. I haven't tracked it down yet but in order not to break the reporter tests I'm now discarding those from the recorded logs. The mini reporter tests break in Node.js 11 since it now writes output a little differently. I've disabled that test for Node.js 11.
1 parent 82daa5e commit 9600966

File tree

8 files changed

+1157
-4183
lines changed

8 files changed

+1157
-4183
lines changed

docs/recipes/flow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/do
44

55
AVA comes bundled with a Flow definition file. This allows developers to leverage Flow for writing tests.
66

7-
This guide assumes you've already set up Flow for your project. Note that AVA's definition as been tested with version 0.91.0.
7+
This guide assumes you've already set up Flow for your project. Note that AVA's definition as been tested with version 0.94.0.
88

99
We recommend you use AVA's built-in Babel pipeline to strip Flow type annotations and declarations. AVA automatically applies your project's Babel configuration, so everything may just work without changes. Alternatively install [`@babel/plugin-transform-flow-strip-types`](https://www.npmjs.com/package/@babel/plugin-transform-flow-strip-types) and customize AVA's configuration in the `package.json` file (or the `ava.config.js` file) as follows.
1010

docs/recipes/typescript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Translations: [Español](https://github.com/avajs/ava-docs/blob/master/es_ES/doc
44

55
AVA comes bundled with a TypeScript definition file. This allows developers to leverage TypeScript for writing tests.
66

7-
This guide assumes you've already set up TypeScript for your project. Note that AVA's definition has been tested with version 3.2.4.
7+
This guide assumes you've already set up TypeScript for your project. Note that AVA's definition has been tested with version 3.3.3333.
88

99
## Configuring AVA to compile TypeScript files on the fly
1010

package-lock.json

Lines changed: 1126 additions & 4159 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,21 @@
6363
"@ava/babel-preset-stage-4": "^2.0.0",
6464
"@ava/babel-preset-transform-test-files": "^4.0.1",
6565
"@ava/write-file-atomic": "^2.2.0",
66-
"@babel/core": "^7.2.2",
67-
"@babel/generator": "^7.3.0",
66+
"@babel/core": "^7.3.4",
67+
"@babel/generator": "^7.3.4",
6868
"@babel/plugin-syntax-async-generators": "^7.2.0",
6969
"@babel/plugin-syntax-object-rest-spread": "^7.2.0",
7070
"@babel/plugin-syntax-optional-catch-binding": "^7.2.0",
7171
"@concordance/react": "^2.0.0",
72-
"ansi-escapes": "^3.1.0",
72+
"ansi-escapes": "^3.2.0",
7373
"ansi-styles": "^3.2.1",
7474
"arr-flatten": "^1.1.0",
7575
"array-union": "^1.0.1",
7676
"array-uniq": "^2.0.0",
7777
"arrify": "^1.0.0",
7878
"bluebird": "^3.5.3",
7979
"chalk": "^2.4.2",
80-
"chokidar": "^2.0.4",
80+
"chokidar": "^2.1.2",
8181
"chunkd": "^1.0.0",
8282
"ci-parallel-vars": "^1.0.0",
8383
"clean-stack": "^2.0.0",
@@ -90,16 +90,16 @@
9090
"convert-source-map": "^1.6.0",
9191
"currently-unhandled": "^0.4.1",
9292
"debug": "^4.1.1",
93-
"del": "^3.0.0",
93+
"del": "^4.0.0",
9494
"dot-prop": "^4.2.0",
9595
"emittery": "^0.4.1",
9696
"empower-core": "^1.2.0",
9797
"equal-length": "^1.0.0",
9898
"escape-string-regexp": "^1.0.5",
99-
"esm": "^3.2.4",
99+
"esm": "^3.2.10",
100100
"figures": "^2.0.0",
101101
"find-up": "^3.0.0",
102-
"get-port": "^4.1.0",
102+
"get-port": "^4.2.0",
103103
"globby": "^7.1.1",
104104
"ignore-by-default": "^1.0.0",
105105
"import-local": "^2.0.0",
@@ -116,16 +116,16 @@
116116
"lodash.difference": "^4.3.0",
117117
"lodash.flatten": "^4.2.0",
118118
"loud-rejection": "^1.2.0",
119-
"make-dir": "^1.3.0",
119+
"make-dir": "^2.1.0",
120120
"matcher": "^1.1.1",
121121
"md5-hex": "^2.0.0",
122122
"meow": "^5.0.0",
123123
"ms": "^2.1.1",
124124
"multimatch": "^3.0.0",
125125
"observable-to-promise": "^0.5.0",
126-
"ora": "^3.0.0",
126+
"ora": "^3.2.0",
127127
"package-hash": "^3.0.0",
128-
"pkg-conf": "^2.1.0",
128+
"pkg-conf": "^3.0.0",
129129
"plur": "^3.0.1",
130130
"pretty-ms": "^4.0.0",
131131
"require-precompiled": "^0.1.0",
@@ -144,27 +144,27 @@
144144
},
145145
"devDependencies": {
146146
"cli-table3": "^0.5.1",
147-
"codecov": "^3.1.0",
147+
"codecov": "^3.2.0",
148148
"delay": "^4.1.0",
149149
"execa": "^1.0.0",
150-
"flow-bin": "^0.91.0",
150+
"flow-bin": "^0.94.0",
151151
"get-stream": "^4.1.0",
152152
"git-branch": "^2.0.1",
153153
"has-ansi": "^3.0.0",
154-
"lolex": "^3.0.0",
155-
"nyc": "^13.1.0",
154+
"lolex": "^3.1.0",
155+
"nyc": "^13.3.0",
156156
"proxyquire": "^2.1.0",
157-
"react": "^16.7.0",
158-
"react-test-renderer": "^16.7.0",
157+
"react": "^16.8.3",
158+
"react-test-renderer": "^16.8.3",
159159
"replace-string": "^2.0.0",
160160
"signal-exit": "^3.0.0",
161-
"sinon": "^7.2.3",
161+
"sinon": "^7.2.7",
162162
"source-map-fixtures": "^2.1.0",
163-
"tap": "^12.4.0",
163+
"tap": "~12.4.1",
164164
"temp-write": "^3.4.0",
165165
"touch": "^3.1.0",
166166
"ts-node": "^8.0.2",
167-
"typescript": "^3.2.4",
167+
"typescript": "^3.3.3333",
168168
"xo": "^0.24.0",
169169
"zen-observable": "^0.8.13"
170170
},
@@ -174,6 +174,7 @@
174174
"test/fixture/ava-paths/target/test.js",
175175
"test/fixture/{source-map-initial,syntax-error}.js",
176176
"test/fixture/snapshots/test-sourcemaps/build/**",
177+
"test/fixture/power-assert.js",
177178
"**/*.ts",
178179
"test/flow-types/*"
179180
],

test/helper/report.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ exports.assert = (t, logFile, buffer, stripOptions) => {
6464

6565
exports.sanitizers = {
6666
cwd: str => replaceString(str, process.cwd(), '~'),
67+
experimentalWarning: str => str.replace(/^\(node:\d+\) ExperimentalWarning.+\n/g, ''),
6768
lineEndings: str => replaceString(str, '\r\n', '\n'),
6869
posix: str => replaceString(str, '\\', '/'),
6970
slow: str => str.replace(/(slow.+?)\(\d+m?s\)/g, '$1 (000ms)'),

test/reporters/mini.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
require('../helper/report').captureStdIOReliability();
33
require('../helper/fix-reporter-env')();
44

5+
// Excessive writes occur in Node.js 11. These don't have a visual impact but prevent the integration tests from passing.
6+
if (process.version.startsWith('v11')) {
7+
process.exit(0); // eslint-disable-line unicorn/no-process-exit
8+
}
9+
510
const path = require('path');
611
const {test} = require('tap');
712
const TTYStream = require('../helper/tty-stream');
@@ -15,7 +20,7 @@ const run = (type, sanitizers = []) => t => {
1520

1621
const tty = new TTYStream({
1722
columns: 200,
18-
sanitizers: [...sanitizers, report.sanitizers.cwd, report.sanitizers.posix, report.sanitizers.unreliableProcessIO, report.sanitizers.version]
23+
sanitizers: [...sanitizers, report.sanitizers.cwd, report.sanitizers.experimentalWarning, report.sanitizers.posix, report.sanitizers.unreliableProcessIO, report.sanitizers.version]
1924
});
2025
const reporter = new MiniReporter({
2126
spinner: {

test/reporters/tap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const run = (type, sanitizers = []) => t => {
1515

1616
const tty = new TTYStream({
1717
columns: 200,
18-
sanitizers: [...sanitizers, report.sanitizers.cwd, report.sanitizers.posix, report.sanitizers.unreliableProcessIO]
18+
sanitizers: [...sanitizers, report.sanitizers.cwd, report.sanitizers.experimentalWarning, report.sanitizers.posix, report.sanitizers.unreliableProcessIO]
1919
});
2020
const reporter = new TapReporter({
2121
reportStream: tty,

test/reporters/verbose.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const run = (type, sanitizers = []) => t => {
1515

1616
const tty = new TTYStream({
1717
columns: 200,
18-
sanitizers: [...sanitizers, report.sanitizers.cwd, report.sanitizers.posix, report.sanitizers.slow, report.sanitizers.unreliableProcessIO, report.sanitizers.version]
18+
sanitizers: [...sanitizers, report.sanitizers.cwd, report.sanitizers.experimentalWarning, report.sanitizers.posix, report.sanitizers.slow, report.sanitizers.unreliableProcessIO, report.sanitizers.version]
1919
});
2020
const reporter = new VerboseReporter({
2121
reportStream: tty,

0 commit comments

Comments
 (0)