regressify 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -173,10 +173,10 @@ module.exports = async (context) => {
173
173
  }
174
174
  }
175
175
 
176
- if (action.persit) {
177
- console.log(logPrefix + 'persit:', action.uncheck);
176
+ if (!!action.persit) {
177
+ console.log(logPrefix + 'persit:', action.persit);
178
178
  const states = await browserContext.storageState();
179
- fs.writeFileSync(getStatePath(), JSON.stringify(states, null, 2));
179
+ fs.writeFileSync(getStatePath(action.persit), JSON.stringify(states, null, 2));
180
180
  }
181
181
  }
182
182
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "regressify",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Visual regression tests support",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",