Commit e677789 1 parent b505989 commit e677789 Copy full SHA for e677789
File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " regressify" ,
3
- "version" : " 1.2.27 " ,
3
+ "version" : " 1.2.28 " ,
4
4
"description" : " Visual regression tests support" ,
5
5
"main" : " src/index.ts" ,
6
6
"type" : " module" ,
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ export function getConfig(args: string[]): Config {
197
197
browser : data ?. browser ?? 'chromium' ,
198
198
ignoreHTTPSErrors : data && typeof data ?. ignoreSslErrors === 'boolean' ? data . ignoreSslErrors : true ,
199
199
headless : data ?. debug ? undefined : 'new' ,
200
- storageState : data ?. state ? getStatePath ( data . state ) : undefined ,
200
+ storageState : data ?. state && fs . existsSync ( getStatePath ( data . state ) ) ? getStatePath ( data . state ) : undefined ,
201
201
} ,
202
202
asyncCaptureLimit : data ?. asyncCaptureLimit ?? 5 ,
203
203
asyncCompareLimit : data ?. asyncCompareLimit ?? 50 ,
You can’t perform that action at this time.
0 commit comments