diff --git a/.gitignore b/.gitignore index 2a2fd2e..a565d77 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ node_modules/ npm-debug.log cypress/videos/ cypress/screenshots/ +cypress/snapshots/Arrays.json \ No newline at end of file diff --git a/package.json b/package.json index c0204ee..b92d05c 100644 --- a/package.json +++ b/package.json @@ -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 , Gleb Bahmutov ", "bugs": "https://github.com/datashard/snapshot/issues", "engines": { diff --git a/src/utils/snapshots/snapshot.js b/src/utils/snapshots/snapshot.js index 104ceaa..ba07477 100644 --- a/src/utils/snapshots/snapshot.js +++ b/src/utils/snapshots/snapshot.js @@ -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;