Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update devDependency ava from v1.1.0 to v3.9.0 #490

Merged
merged 2 commits into from Jul 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 9 additions & 2 deletions package.json
Expand Up @@ -96,11 +96,12 @@
"update-notifier": "^4.1.0"
},
"devDependencies": {
"ava": "^1.1.0",
"ava": "^3.9.0",
"coveralls": "^3.1.0",
"eslint-config-xo-react": "^0.23.0",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^4.0.4",
"esm": "^3.2.25",
"execa": "^4.0.2",
"nyc": "^15.1.0",
"pify": "^5.0.0",
Expand All @@ -113,5 +114,11 @@
},
"eslintIgnore": [
"test/fixtures"
]
],
"ava": {
"require": [
"esm"
],
"timeout": "1m"
}
}
10 changes: 5 additions & 5 deletions test/lint-text.js
Expand Up @@ -74,7 +74,7 @@ test('`ignores` option without filename', t => {
fn.lintText('\'use strict\'\nconsole.log(\'unicorn\');\n', {
ignores: ['ignored/**/*.js']
});
}, /The `ignores` option requires the `filename` option to be defined./u);
}, {message: /The `ignores` option requires the `filename` option to be defined./u});
});

test('JSX support', t => {
Expand Down Expand Up @@ -140,22 +140,22 @@ test('regression test for #71', t => {
const {results} = fn.lintText('const foo = { key: \'value\' };\nconsole.log(foo);\n', {
extends: path.join(__dirname, 'fixtures/extends.js')
});
t.is(results[0].errorCount, 0, results[0]);
t.is(results[0].errorCount, 0);
});

test('lintText() - overrides support', async t => {
const cwd = path.join(__dirname, 'fixtures/overrides');
const bar = path.join(cwd, 'test/bar.js');
const barResults = fn.lintText(await readFile(bar, 'utf8'), {filename: bar, cwd}).results;
t.is(barResults[0].errorCount, 0, barResults[0]);
t.is(barResults[0].errorCount, 0);

const foo = path.join(cwd, 'test/foo.js');
const fooResults = fn.lintText(await readFile(foo, 'utf8'), {filename: foo, cwd}).results;
t.is(fooResults[0].errorCount, 0, fooResults[0]);
t.is(fooResults[0].errorCount, 0);

const index = path.join(cwd, 'test/index.js');
const indexResults = fn.lintText(await readFile(bar, 'utf8'), {filename: index, cwd}).results;
t.is(indexResults[0].errorCount, 0, indexResults[0]);
t.is(indexResults[0].errorCount, 0);
});

test('do not lint gitignored files if filename is given', async t => {
Expand Down