Skip to content

Commit c980ab0

Browse files
committed
chore: attempt to fix CLI tests CI
1 parent f2ad508 commit c980ab0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/git-proxy-cli/test/testCli.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ const TEST_PASSWORD = 'testpassword';
2525
const TEST_EMAIL = 'jane.doe@email.com';
2626
const TEST_GIT_ACCOUNT = 'testGitAccount';
2727

28-
const CLI_PATH = 'npx git-proxy-cli';
28+
const CLI_PATH =
29+
process.env.NODE_ENV === 'test'
30+
? 'node ./packages/git-proxy-cli/dist/index.js'
31+
: 'npx git-proxy-cli';
2932

3033
describe('test git-proxy-cli', function () {
3134
// *** help ***

0 commit comments

Comments
 (0)