make devtoolslog a let because it breaks code @ work

This commit is contained in:
Joshua 2023-03-28 12:41:33 +02:00
parent 097495615b
commit 4316f5e1c2
3 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

@ -3,3 +3,4 @@ node_modules/
npm-debug.log
cypress/videos/
cypress/screenshots/
cypress/snapshots/Arrays.json

View file

@ -1,7 +1,7 @@
{
"name": "@datashard/snapshot",
"description": "Adds value / object / DOM element snapshot testing support to Cypress test runner",
"version": "2.1.8",
"version": "2.2.1",
"author": "Joshua <data@shard.wtf>, Gleb Bahmutov <gleb@cypress.io>",
"bugs": "https://github.com/datashard/snapshot/issues",
"engines": {

View file

@ -38,7 +38,7 @@ const set_snapshot = (
) => {
if (!store) return;
const devToolsLog = { $el: serialized };
let devToolsLog = { $el: serialized };
if (Cypress.dom.isJquery(value)) {
devToolsLog.$el = value;