From 0d3591a45e73fc4a7e1cd804083d9a9c12f70339 Mon Sep 17 00:00:00 2001 From: Ryan Zimmerman <17342435+RyanZim@users.noreply.github.com> Date: Mon, 30 Dec 2019 19:31:15 -0500 Subject: [PATCH] Update ava to version 2.4.0 (#302) * chore(package): update ava to version 2.4.0 Closes #280 * Fix ava tests Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com> --- package.json | 9 +++++++-- test/error.js | 2 +- test/fixtures/{bad-plugin.js => _bad-plugin.js} | 0 3 files changed, 8 insertions(+), 3 deletions(-) rename test/fixtures/{bad-plugin.js => _bad-plugin.js} (100%) diff --git a/package.json b/package.json index e99bdc8..ac01aca 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "yargs": "^15.0.2" }, "devDependencies": { - "ava": "^1.0.1", + "ava": "^2.4.0", "coveralls": "^3.0.0", "eslint": "^5.0.0", "eslint-config-problems": "2.0.0", @@ -70,5 +70,10 @@ "url": "https://github.com/postcss/postcss-cli/issues" }, "homepage": "https://github.com/postcss/postcss-cli#readme", - "license": "MIT" + "license": "MIT", + "ava": { + "helpers": [ + "test/helpers/*" + ] + } } diff --git a/test/error.js b/test/error.js index d0518c4..cd26517 100644 --- a/test/error.js +++ b/test/error.js @@ -56,7 +56,7 @@ test('plugin throws on require', t => { return cli([ 'test/fixtures/a.css', '-u', - './test/fixtures/bad-plugin', + './test/fixtures/_bad-plugin', '-o', tmp() ]).then(({ error, code }) => { diff --git a/test/fixtures/bad-plugin.js b/test/fixtures/_bad-plugin.js similarity index 100% rename from test/fixtures/bad-plugin.js rename to test/fixtures/_bad-plugin.js