Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenlouv committed Sep 2, 2023
1 parent bebc49f commit c4330b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }],
},
Expand Down
7 changes: 3 additions & 4 deletions src/test/e2e/cli/entrypoint.cli.private.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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."
"
`);
});

Expand Down

0 comments on commit c4330b4

Please sign in to comment.