diff --git a/jest.config.ts b/jest.config.ts index 5faf3002..9c2236f7 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -5,7 +5,7 @@ process.env.TZ = 'UTC'; process.env.NODE_ENV = 'jest'; const baseConfig: JestConfigWithTsJest = { - prettierPath: null, + prettierPath: null, // disable prettier until it is supported by jest transform: { '^.+\\.ts?$': ['ts-jest', { diagnostics: false }], }, diff --git a/src/test/e2e/cli/entrypoint.cli.private.test.ts b/src/test/e2e/cli/entrypoint.cli.private.test.ts index c3bd0446..9118f025 100644 --- a/src/test/e2e/cli/entrypoint.cli.private.test.ts +++ b/src/test/e2e/cli/entrypoint.cli.private.test.ts @@ -32,7 +32,8 @@ describe('entrypoint cli', () => { it('--help', async () => { const { output } = await runBackportViaCli([`--help`]); - expect(output).toMatchInlineSnapshot(` + const [help] = output.split('--help'); + expect(help).toMatchInlineSnapshot(` "entrypoint.cli.ts [args] Options: @@ -117,9 +118,7 @@ Options: --targetBranchChoice List branches to backport to [array] -l, --targetPRLabel, --label Add labels to the target (backport) PR [array] --verify Opposite of no-verify [boolean] - --help Show help [boolean] - -For bugs, feature requests or questions: https://github." + " `); });