From 97fc0e3ff8032c9fd65f9e170aaf2dabb69366ad Mon Sep 17 00:00:00 2001 From: olivier Date: Wed, 20 Jul 2022 12:36:05 +0200 Subject: [PATCH] add comments --- package.json | 13 ++++++++++++- yarn.lock | 12 +++++------- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 765b68cb34..8b8db5f2a8 100644 --- a/package.json +++ b/package.json @@ -169,8 +169,19 @@ "resolutions": { "@types/react": "17.0.14" }, + "jest-comments": { + "snapshotSerializers" : "used for snapshot", + "testEnvironment" :"moved to jsdom like in matrix-react-sdk", + "testMatch" :"execute only tests in unit-tests directory", + "setupFilesAfterEnv" :"duplicate enzyme configuration in our own setup because it was not taken", + "moduleNameMapper" : "use mapper from element-web, helps at mocking {module, ressources} directly with regexp", + "transformIgnorePatterns" : "transcompile ts from those module" + }, "jest": { - "testEnvironment": "jest-environment-jsdom", + "snapshotSerializers": [ + "enzyme-to-json/serializer" + ], + "testEnvironment": "jsdom", "testMatch": [ "/test/unit-tests/**/*-test.[tj]s?(x)" ], diff --git a/yarn.lock b/yarn.lock index 6c8537e690..8d6719a48d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8601,7 +8601,7 @@ mathml-tag-names@^2.1.3: resolved "https://registry.yarnpkg.com/mathml-tag-names/-/mathml-tag-names-2.1.3.tgz#4ddadd67308e780cf16a47685878ee27b736a0a3" integrity sha512-APMBEanjybaPzUrfqU0IMU5I0AswKMH7k8OTLs0vvV4KZpExkTkY87nR/zpbuTPj+gARop7aGUbl11pnDfW6xg== -"matrix-analytics-events@github:matrix-org/matrix-analytics-events#a0687ca6fbdb7258543d49b99fb88b9201e900b0": +"matrix-analytics-events@github:matrix-org/matrix-analytics-events.git#a0687ca6fbdb7258543d49b99fb88b9201e900b0": version "0.0.1" resolved "https://codeload.github.com/matrix-org/matrix-analytics-events/tar.gz/a0687ca6fbdb7258543d49b99fb88b9201e900b0" @@ -8615,10 +8615,9 @@ matrix-events-sdk@^0.0.1-beta.7: resolved "https://registry.yarnpkg.com/matrix-events-sdk/-/matrix-events-sdk-0.0.1-beta.7.tgz#5ffe45eba1f67cc8d7c2377736c728b322524934" integrity sha512-9jl4wtWanUFSy2sr2lCjErN/oC8KTAtaeaozJtrgot1JiQcEI4Rda9OLgQ7nLKaqb4Z/QUx/fR3XpDzm5Jy1JA== -matrix-js-sdk@18.1.0: +matrix-js-sdk@18.1.0, matrix-js-sdk@matrix-org/matrix-js-sdk#v18.1.0: version "18.1.0" - resolved "https://registry.yarnpkg.com/matrix-js-sdk/-/matrix-js-sdk-18.1.0.tgz#9fa312e71cf153c4a8aac88d908c5ddd52181c6c" - integrity sha512-O5D36paIsY7a2M2mOo7KKU7v1Mb3PVkmYKupXYcXd9gB/Ki1K4mds+vSDEhgkKyKwk6MK1AV/vgvp0xJCsttvg== + resolved "https://codeload.github.com/matrix-org/matrix-js-sdk/tar.gz/bf30c15d778e54366441ff1eaf8d7cfb5e1f58ef" dependencies: "@babel/runtime" "^7.12.5" another-json "^0.2.0" @@ -8639,10 +8638,9 @@ matrix-mock-request@^2.0.0: dependencies: expect "^1.20.2" -matrix-react-sdk@3.46.0: +matrix-react-sdk@matrix-org/matrix-react-sdk#v3.46.0: version "3.46.0" - resolved "https://registry.yarnpkg.com/matrix-react-sdk/-/matrix-react-sdk-3.46.0.tgz#de9f8456941818099b9dedc41fc6921135ef1c89" - integrity sha512-k6dMCrpMpdcbpBr6MuSfWEcO4+w7ZY0CgW3Zzzo+dO5/Z4v2f7Q/bAN+456IInN4/ntO2Js2wakCCj9EnS6ltQ== + resolved "https://codeload.github.com/matrix-org/matrix-react-sdk/tar.gz/cacdb69774594e85f7afdae43e81dbf833f17063" dependencies: "@babel/runtime" "^7.12.5" "@sentry/browser" "^6.11.0"