From f040ebda77b5d55725716f029b5e5763b0b010b3 Mon Sep 17 00:00:00 2001 From: Marius Tobiassen Bungum <24507952+mariush2@users.noreply.github.com> Date: Fri, 16 Feb 2024 06:42:12 +0100 Subject: [PATCH 1/3] :construction_worker: Fix paths for test-util files in check_config.yaml --- config/config_files/workflows/check_config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config_files/workflows/check_config.yaml b/config/config_files/workflows/check_config.yaml index 6d91cf2d5..7f8844f6e 100644 --- a/config/config_files/workflows/check_config.yaml +++ b/config/config_files/workflows/check_config.yaml @@ -49,9 +49,9 @@ jobs: run: diff setupLocalhost.mjs <(curl https://raw.githubusercontent.com/equinor/amplify-components/main/config/config_files/setupLocalhost.mjs) - name: Compare remote src/setupTests/setupTests.ts to local - working-directory: client/src/setupTests + working-directory: client/src/test-utils run: diff setupTests.ts <(curl https://raw.githubusercontent.com/equinor/amplify-components/main/config/config_files/setupTests/setupTests.ts) - name: Compare remote src/setupTests/mockLocalStorage.ts to local - working-directory: client/src/setupTests + working-directory: client/src/test-utils run: diff mockLocalStorage.ts <(curl https://raw.githubusercontent.com/equinor/amplify-components/main/config/config_files/setupTests/mockLocalStorage.ts) From 352d7e35b2d8cabffe4750069db553e765c0ae18 Mon Sep 17 00:00:00 2001 From: Marius Tobiassen Bungum <24507952+mariush2@users.noreply.github.com> Date: Fri, 16 Feb 2024 06:56:02 +0100 Subject: [PATCH 2/3] Update check_config.yaml --- config/config_files/workflows/check_config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config_files/workflows/check_config.yaml b/config/config_files/workflows/check_config.yaml index 7f8844f6e..010392fca 100644 --- a/config/config_files/workflows/check_config.yaml +++ b/config/config_files/workflows/check_config.yaml @@ -50,8 +50,8 @@ jobs: - name: Compare remote src/setupTests/setupTests.ts to local working-directory: client/src/test-utils - run: diff setupTests.ts <(curl https://raw.githubusercontent.com/equinor/amplify-components/main/config/config_files/setupTests/setupTests.ts) + run: diff setupTests.ts <(curl https://raw.githubusercontent.com/equinor/amplify-components/main/config/config_files/test-utils/setupTests.ts) - name: Compare remote src/setupTests/mockLocalStorage.ts to local working-directory: client/src/test-utils - run: diff mockLocalStorage.ts <(curl https://raw.githubusercontent.com/equinor/amplify-components/main/config/config_files/setupTests/mockLocalStorage.ts) + run: diff mockLocalStorage.ts <(curl https://raw.githubusercontent.com/equinor/amplify-components/main/config/config_files/test-utils/mockLocalStorage.ts) From 9fd0e2e559d13bf60c4a6192a58d33ef0f56cc43 Mon Sep 17 00:00:00 2001 From: Marius Tobiassen Bungum <24507952+mariush2@users.noreply.github.com> Date: Fri, 16 Feb 2024 07:25:48 +0100 Subject: [PATCH 3/3] Update name for test-utils steps --- config/config_files/workflows/check_config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config_files/workflows/check_config.yaml b/config/config_files/workflows/check_config.yaml index 010392fca..13ea9bef6 100644 --- a/config/config_files/workflows/check_config.yaml +++ b/config/config_files/workflows/check_config.yaml @@ -48,10 +48,10 @@ jobs: working-directory: client/src run: diff setupLocalhost.mjs <(curl https://raw.githubusercontent.com/equinor/amplify-components/main/config/config_files/setupLocalhost.mjs) - - name: Compare remote src/setupTests/setupTests.ts to local + - name: Compare remote src/test-utils/setupTests.ts to local working-directory: client/src/test-utils run: diff setupTests.ts <(curl https://raw.githubusercontent.com/equinor/amplify-components/main/config/config_files/test-utils/setupTests.ts) - - name: Compare remote src/setupTests/mockLocalStorage.ts to local + - name: Compare remote src/test-utils/mockLocalStorage.ts to local working-directory: client/src/test-utils run: diff mockLocalStorage.ts <(curl https://raw.githubusercontent.com/equinor/amplify-components/main/config/config_files/test-utils/mockLocalStorage.ts)