From e8353d29824056b55965651d86c647a31df093b6 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Wed, 28 Jun 2023 14:58:23 -0400 Subject: [PATCH] Ensure components tests run on CI and remove obsolete snapshot (#23878) * Ensure components tests run on CI and remove obsolete snapshot * Add missing snapshots --- webapp/platform/components/package.json | 1 + ...modal.test.tsx.snap => generic_modal.test.tsx.snap} | 10 +--------- 2 files changed, 2 insertions(+), 9 deletions(-) rename webapp/platform/components/src/generic_modal/__snapshots__/{legacy_generic_modal.test.tsx.snap => generic_modal.test.tsx.snap} (92%) diff --git a/webapp/platform/components/package.json b/webapp/platform/components/package.json index b748a0c1af..ef980701f7 100644 --- a/webapp/platform/components/package.json +++ b/webapp/platform/components/package.json @@ -9,6 +9,7 @@ "build": "rollup -c", "run": "rollup -c --watch", "test": "cross-env TZ=Etc/UTC jest", + "test-ci": "cross-env TZ=Etc/UTC jest", "clean": "rm -rf dist node_modules tsconfig.tsbuildinfo .rollup.cache" }, "devDependencies": { diff --git a/webapp/platform/components/src/generic_modal/__snapshots__/legacy_generic_modal.test.tsx.snap b/webapp/platform/components/src/generic_modal/__snapshots__/generic_modal.test.tsx.snap similarity index 92% rename from webapp/platform/components/src/generic_modal/__snapshots__/legacy_generic_modal.test.tsx.snap rename to webapp/platform/components/src/generic_modal/__snapshots__/generic_modal.test.tsx.snap index c43b2c8d65..6946242609 100644 --- a/webapp/platform/components/src/generic_modal/__snapshots__/legacy_generic_modal.test.tsx.snap +++ b/webapp/platform/components/src/generic_modal/__snapshots__/generic_modal.test.tsx.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`LegacyGenericModal should match snapshot for base case 1`] = ` +exports[`GenericModal should match snapshot for base case 1`] = ` Object { "asFragment": [Function], "baseElement": -
-