Skip to content

Commit

Permalink
fix: flow
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuweb committed Feb 2, 2024
1 parent 1b8c738 commit b52836b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ type RegParams = {
expectedDir: string,
diffDir: string,
report?: string,
junitReport?: string,
json?: string,
update?: boolean,
extendedErrors?: boolean,
urlPrefix?: string,
matchingThreshold?: number,
threshold?: number, // alias to thresholdRate.
Expand Down Expand Up @@ -197,7 +199,7 @@ module.exports = (params: RegParams) => {
diffDir,
report: report || '',
junitReport: junitReport || '',
extendedErrors,
extendedErrors: !!extendedErrors,
urlPrefix: urlPrefix || '',
enableClientAdditionalDetection: !!enableClientAdditionalDetection,
});
Expand Down
1 change: 1 addition & 0 deletions src/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import * as detectDiff from 'x-img-diff-js';
import fs from 'fs';
import mkdirp from 'make-dir'; // $FlowIgnore
import path from 'path';
// $FlowIgnore
import * as xmlBuilder from 'xmlbuilder2';

export type ReportParams = {
Expand Down

0 comments on commit b52836b

Please sign in to comment.