Skip to content

Commit

Permalink
fix: update export type for cli
Browse files Browse the repository at this point in the history
  • Loading branch information
PippoRaimondi committed Jan 8, 2021
1 parent bfadcb5 commit a7dc86a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -37,5 +38,3 @@ const cli = (args) => {
}
}
}

export default cli
2 changes: 1 addition & 1 deletion src/cli.test.js
Original file line number Diff line number Diff line change
@@ -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'),
Expand Down

0 comments on commit a7dc86a

Please sign in to comment.