Skip to content

Commit

Permalink
Default to all goldens everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
bearfriend committed Aug 2, 2023
1 parent fef5ce9 commit eaa6c86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/cli/vdiff/migrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { glob } from 'glob';
import { PATHS } from '../../visual-diff-plugin.js';
import { stdout } from 'node:process';

export async function migrate(argv) {
const { pattern = './test/**' } = commandLineArgs({ name: 'pattern', type: String, defaultOption: true }, { partial: true, argv });
export async function migrate(argv = []) {
const { pattern = './**' } = commandLineArgs({ name: 'pattern', type: String, defaultOption: true }, { partial: true, argv });
const oldSuffix = 'screenshots/ci/golden';
const dirs = await glob(`${pattern}/${oldSuffix}`, { ignore: 'node_modules/**', posix: true });
let fileCount = 0;
Expand Down

0 comments on commit eaa6c86

Please sign in to comment.