diff --git a/jest.config.js b/jest.config.js index 148cf31..15441d4 100644 --- a/jest.config.js +++ b/jest.config.js @@ -34,6 +34,9 @@ module.exports = { '__snapshots__', '/build', ], + snapshotSerializers: [ + "jest-emotion" + ], coveragePathIgnorePatterns: [ 'node_modules', 'fixtures', diff --git a/package.json b/package.json index a707080..351767f 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ "identity-obj-proxy": "3.0.0", "in-publish": "2.0.0", "jest": "24.1.0", + "jest-emotion": "10.0.10", "jest-environment-jsdom": "24.0.0", "jest-environment-jsdom-global": "1.1.1", "jest-environment-node": "24.0.0", diff --git a/test/unit/webui/components/__snapshots__/copyToClipBoard.spec.js.snap b/test/unit/webui/components/__snapshots__/copyToClipBoard.spec.js.snap index efdbac6..210a3af 100644 --- a/test/unit/webui/components/__snapshots__/copyToClipBoard.spec.js.snap +++ b/test/unit/webui/components/__snapshots__/copyToClipBoard.spec.js.snap @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[` component render the component 1`] = `"
copy text
"`; +exports[` component render the component 1`] = `"
copy text
"`; diff --git a/test/unit/webui/components/__snapshots__/footer.spec.js.snap b/test/unit/webui/components/__snapshots__/footer.spec.js.snap index 9a018be..6fd3401 100644 --- a/test/unit/webui/components/__snapshots__/footer.spec.js.snap +++ b/test/unit/webui/components/__snapshots__/footer.spec.js.snap @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`