Skip to content

Commit 52953dd

Browse files
committed
fix(cli): resotre some logic in tests
1 parent e2c0635 commit 52953dd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

@commitlint/cli/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"devDependencies": {
3939
"@types/yargs": "^15.0.3",
4040
"@commitlint/test": "8.2.0",
41+
"@commitlint/utils": "^8.3.4",
4142
"execa": "0.11.0",
4243
"fs-extra": "^8.1.0"
4344
},

@commitlint/cli/src/cli.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface TestOptions {
1111
env?: Record<string, string>;
1212
}
1313

14-
function cli(args: string[], options: TestOptions) {
14+
const cli = (args: string[], options: TestOptions) => {
1515
return (input = '') => {
1616
const c = execa(bin, args, {
1717
cwd: options.cwd,
@@ -20,7 +20,7 @@ function cli(args: string[], options: TestOptions) {
2020
});
2121
return c.catch(err => err);
2222
};
23-
}
23+
};
2424

2525
const gitBootstrap = (fixture: string) => git.bootstrap(fixture, __dirname);
2626
const fixBootstrap = (fixture: string) => fix.bootstrap(fixture, __dirname);

0 commit comments

Comments
 (0)