diff --git a/package.json b/package.json index cb95934..f058b62 100644 --- a/package.json +++ b/package.json @@ -73,10 +73,12 @@ "chokidar": "^2.1.5", "enzyme": "^3.9.0", "enzyme-adapter-react-16": "^1.11.2", + "enzyme-to-json": "^3.3.5", "eslint-plugin-flowtype": "^3.4.2", "flow-bin": "^0.95.1", "flow-typed": "^2.5.1", "jest": "^24.5.0", + "jest-styled-components": "^6.3.1", "npm-run-all": "^4.1.5", "react-test-renderer": "^16.8.6", "standard": "12.0.1" @@ -95,12 +97,24 @@ { "displayName": "server", "rootDir": "", - "testPathIgnorePatterns": ["/node_modules/","/ui/"] - }, { - "displayName": "ui", - "rootDir": "/ui", - "setupFiles": ["/setupTests.js"], - "testPathIgnorePatterns": ["/node_modules/", "/.next/"] + "testPathIgnorePatterns": [ + "/node_modules/", + "/ui/" + ] + }, + { + "displayName": "ui", + "rootDir": "/ui", + "setupFiles": [ + "/setupTests.js" + ], + "snapshotSerializers": [ + "enzyme-to-json/serializer" + ], + "testPathIgnorePatterns": [ + "/node_modules/", + "/.next/" + ] } ] } diff --git a/yarn.lock b/yarn.lock index fcc6c04..324fde3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3119,6 +3119,16 @@ css-what@2.1: resolved "https://registry.yarnpkg.com/css-what/-/css-what-2.1.3.tgz#a6d7604573365fe74686c3f311c56513d88285f2" integrity sha512-a+EPoD+uZiNfh+5fxw2nO9QwFa6nJe2Or35fGY6Ipw1R3R4AGz1d1TEZrCegvw2YTmZ0jXirGYlzxxpYSHwpEg== +css@^2.2.4: + version "2.2.4" + resolved "https://registry.yarnpkg.com/css/-/css-2.2.4.tgz#c646755c73971f2bba6a601e2cf2fd71b1298929" + integrity sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw== + dependencies: + inherits "^2.0.3" + source-map "^0.6.1" + source-map-resolve "^0.5.2" + urix "^0.1.0" + cssom@0.3.x, "cssom@>= 0.3.2 < 0.4.0": version "0.3.6" resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.6.tgz#f85206cee04efa841f3c5982a74ba96ab20d65ad" @@ -3617,6 +3627,13 @@ enzyme-adapter-utils@^1.10.1: prop-types "^15.7.2" semver "^5.6.0" +enzyme-to-json@^3.3.5: + version "3.3.5" + resolved "https://registry.yarnpkg.com/enzyme-to-json/-/enzyme-to-json-3.3.5.tgz#f8eb82bd3d5941c9d8bc6fd9140030777d17d0af" + integrity sha512-DmH1wJ68HyPqKSYXdQqB33ZotwfUhwQZW3IGXaNXgR69Iodaoj8TF/D9RjLdz4pEhGq2Tx2zwNUIjBuqoZeTgA== + dependencies: + lodash "^4.17.4" + enzyme@^3.9.0: version "3.9.0" resolved "https://registry.yarnpkg.com/enzyme/-/enzyme-3.9.0.tgz#2b491f06ca966eb56b6510068c7894a7e0be3909" @@ -5640,6 +5657,13 @@ jest-snapshot@^24.5.0: pretty-format "^24.5.0" semver "^5.5.0" +jest-styled-components@^6.3.1: + version "6.3.1" + resolved "https://registry.yarnpkg.com/jest-styled-components/-/jest-styled-components-6.3.1.tgz#fa21a89bfe8c20081c7c083cbaed2200854b60e3" + integrity sha512-zie3ajvJbwlbHCAq8/Bv5jdbcYCz0ZMRNNX6adL7wSRpkCVPQtiJigv1140JN1ZOJIODPn8VKrjeFCN+jlPa7w== + dependencies: + css "^2.2.4" + jest-util@^24.5.0: version "24.5.0" resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-24.5.0.tgz#9d9cb06d9dcccc8e7cc76df91b1635025d7baa84" @@ -9007,7 +9031,7 @@ source-list-map@^2.0.0: resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34" integrity sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw== -source-map-resolve@^0.5.0: +source-map-resolve@^0.5.0, source-map-resolve@^0.5.2: version "0.5.2" resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.2.tgz#72e2cc34095543e43b2c62b2c4c10d4a9054f259" integrity sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==