diff --git a/src/cli.js b/src/cli.js index 4ee5c5f..6d887c2 100644 --- a/src/cli.js +++ b/src/cli.js @@ -21,7 +21,8 @@ const parseArgumentsIntoOptions = rawArgs => { } } -const cli = (args) => { +// eslint-disable-next-line import/prefer-default-export +export function cli(args) { const options = parseArgumentsIntoOptions(args) if (options.updateBaseline) { // Only update image if it failed the comparison @@ -37,5 +38,3 @@ const cli = (args) => { } } } - -export default cli diff --git a/src/cli.test.js b/src/cli.test.js index b1c4c23..21df2cf 100644 --- a/src/cli.test.js +++ b/src/cli.test.js @@ -1,7 +1,7 @@ import colors from 'colors/safe' import { copySync, readdirSync } from 'fs-extra' -import cli from './cli' +import { cli } from './cli' jest.mock('fs-extra', () => ({ ...jest.requireActual('fs-extra'),