Skip to content

Commit c941c89

Browse files
committed
feat: update default screenshot format to jpeg in CLI options
1 parent 6d090cf commit c941c89

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ export const cliOptions = {
163163
screenshotFormat: {
164164
type: 'string',
165165
describe:
166-
'Default image format for screenshots. Options: png, jpeg, webp. Default is png.',
166+
'Default image format for screenshots. Options: png, jpeg, webp. Default is jpeg.',
167167
choices: ['png', 'jpeg', 'webp'] as const,
168-
default: 'png',
168+
default: 'jpeg',
169169
},
170170
} satisfies Record<string, YargsOptions>;
171171

tests/cli.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ describe('cli args parsing', () => {
1616
categoryPerformance: true,
1717
'category-network': true,
1818
categoryNetwork: true,
19+
'screenshot-format': 'jpeg',
20+
screenshotFormat: 'jpeg',
1921
};
2022

2123
it('parses with default args', async () => {

0 commit comments

Comments
 (0)