Skip to content

Commit

Permalink
Pin the version, set noKey to true
Browse files Browse the repository at this point in the history
  • Loading branch information
derekjuber committed Nov 7, 2017
1 parent e27c73d commit 2d02665
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"url": "https://github.com/cdlewis/snapshotter.git"
},
"dependencies": {
"enzyme-to-json": "^3.1.3",
"enzyme-to-json": "3.1.3",
"jest-diff": "^18.1.0",
"jest-file-exists": "^17.0.0",
"lodash": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/snapshotter.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const maybeUpdateSnapshot = (snapshotPath, relativeSnapshotPath, component) => {
}

module.exports = (assert, component, id, outputBuffer = process.stdout) => {
const serialisedComponent = JSON.parse(stringify(shallowToJson(component)))
const serialisedComponent = JSON.parse(stringify(shallowToJson(component, { noKey: true })))
const { snapshotPath, relativeSnapshotPath } = getSnapshotPath(id)

try {
Expand Down

0 comments on commit 2d02665

Please sign in to comment.