Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
* Ensure mem is a regular dependency, and update it

* Upgrade XO

* Update dev dependencies
  • Loading branch information
novemberborn committed Apr 13, 2020
1 parent fc93098 commit dce14c6
Show file tree
Hide file tree
Showing 12 changed files with 123 additions and 108 deletions.
8 changes: 4 additions & 4 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ exports.run = async () => { // eslint-disable-line complexity
'strip-aliased': true,
'unknown-options-as-args': false
})
.usage('$0 [<pattern>...]') // eslint-disable-line unicorn/string-content
.usage('$0 debug [<pattern>...]') // eslint-disable-line unicorn/string-content
.usage('$0 [<pattern>...]')
.usage('$0 debug [<pattern>...]')
.usage('$0 reset-cache')
.options({
color: {
Expand All @@ -118,13 +118,13 @@ exports.run = async () => { // eslint-disable-line complexity
description: 'Specific JavaScript file for AVA to read its config from, instead of using package.json or ava.config.* files'
}
})
.command('* [<pattern>...]', 'Run tests', yargs => yargs.options(FLAGS).positional('pattern', { // eslint-disable-line unicorn/string-content
.command('* [<pattern>...]', 'Run tests', yargs => yargs.options(FLAGS).positional('pattern', {
array: true,
describe: 'Glob patterns to select what test files to run. Leave empty if you want AVA to run all test files instead',
type: 'string'
}))
.command(
'debug [<pattern>...]', // eslint-disable-line unicorn/string-content
'debug [<pattern>...]',
'Activate Node.js inspector and run a single test file',
yargs => yargs.options(FLAGS).options({
break: {
Expand Down
2 changes: 1 addition & 1 deletion lib/concordance-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const colorTheme = {
string: {
open: ansiStyles.blue.open,
close: ansiStyles.blue.close,
line: {open: forceColor.blue('\''), close: forceColor.blue('\'')}, // eslint-disable-line unicorn/string-content
line: {open: forceColor.blue('\''), close: forceColor.blue('\'')},
multiline: {start: forceColor.blue('`'), end: forceColor.blue('`')},
controlPicture: ansiStyles.grey,
diff: {
Expand Down
2 changes: 1 addition & 1 deletion lib/load-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const EXPERIMENTS = new Set();
// *Very* rudimentary support for loading ava.config.js files containing an `export default` statement.
const evaluateJsConfig = configFile => {
const contents = fs.readFileSync(configFile, 'utf8');
const script = new vm.Script(`'use strict';(()=>{let __export__;\n${contents.replace(/export default/g, '__export__ =')};return __export__;})()`, { // eslint-disable-line unicorn/string-content
const script = new vm.Script(`'use strict';(()=>{let __export__;\n${contents.replace(/export default/g, '__export__ =')};return __export__;})()`, {
filename: configFile,
lineOffset: -1
});
Expand Down

0 comments on commit dce14c6

Please sign in to comment.