Skip to content

Commit a7dc86a

Browse files
committed
fix: update export type for cli
1 parent bfadcb5 commit a7dc86a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/cli.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ const parseArgumentsIntoOptions = rawArgs => {
2121
}
2222
}
2323

24-
const cli = (args) => {
24+
// eslint-disable-next-line import/prefer-default-export
25+
export function cli(args) {
2526
const options = parseArgumentsIntoOptions(args)
2627
if (options.updateBaseline) {
2728
// Only update image if it failed the comparison
@@ -37,5 +38,3 @@ const cli = (args) => {
3738
}
3839
}
3940
}
40-
41-
export default cli

src/cli.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import colors from 'colors/safe'
22
import { copySync, readdirSync } from 'fs-extra'
33

4-
import cli from './cli'
4+
import { cli } from './cli'
55

66
jest.mock('fs-extra', () => ({
77
...jest.requireActual('fs-extra'),

0 commit comments

Comments
 (0)