From 1914620e49fd19b5d21492d2e8eccf777863d90b Mon Sep 17 00:00:00 2001 From: Markus Olsson Date: Tue, 28 May 2024 15:45:38 +0200 Subject: [PATCH] Add test to verify GCM has been bundled correctly --- test/fast/gcm-test.ts | 13 +++++++++++++ test/helpers.ts | 1 + 2 files changed, 14 insertions(+) create mode 100644 test/fast/gcm-test.ts diff --git a/test/fast/gcm-test.ts b/test/fast/gcm-test.ts new file mode 100644 index 00000000..18a6d9ea --- /dev/null +++ b/test/fast/gcm-test.ts @@ -0,0 +1,13 @@ +import { GitProcess } from '../../lib' +import { gitCredentialManagerVersion } from '../helpers' + +describe('git-credential-manager', () => { + it('matches the expected version', async () => { + const result = await GitProcess.exec( + ['credential-manager', '--version'], + process.cwd() + ) + expect(result.exitCode).toBe(0) + expect(result.stdout).toContain(`git-lfs/${gitCredentialManagerVersion} `) + }) +}) diff --git a/test/helpers.ts b/test/helpers.ts index a29620c2..5eda0990 100644 --- a/test/helpers.ts +++ b/test/helpers.ts @@ -4,6 +4,7 @@ import { GitProcess, IGitResult, GitError } from '../lib' export const gitVersion = '2.43.4' export const gitForWindowsVersion = '2.43.4.windows.1' export const gitLfsVersion = '3.5.1' +export const gitCredentialManagerVersion = '2.5.0' const temp = require('temp').track()