From 53b261d4774a51fa2ba8c48b43abdd03b30a8230 Mon Sep 17 00:00:00 2001 From: jia-deriv Date: Mon, 15 Apr 2024 19:21:33 +0800 Subject: [PATCH] fix: snapshot and lintstaged wrong path --- .lintstagedrc.json | 2 +- .../__snapshots__/social-button.test.tsx.snap | 28 +++++++++---------- .../checkbox-group.test.tsx.snap | 6 ++-- .../__snapshots__/checkbox.test.tsx.snap | 2 +- .../__snapshots__/toggle-switch.test.tsx.snap | 6 ---- .../__snapshots__/snackbar.test.tsx.snap | 12 ++++---- .../__snapshots__/trigger.test.tsx.snap | 15 ---------- 7 files changed, 25 insertions(+), 46 deletions(-) delete mode 100644 lib/components/tabs/trigger/__snapshots__/trigger.test.tsx.snap diff --git a/.lintstagedrc.json b/.lintstagedrc.json index f8798ad9..f26ad30a 100644 --- a/.lintstagedrc.json +++ b/.lintstagedrc.json @@ -1,3 +1,3 @@ { - ".lib/**/*.{js,jsx,ts,tsx}": ["npm run test:staged"] + "./lib/**/*.{js,jsx,ts,tsx}": ["npm run test:staged"] } diff --git a/lib/components/Button/social/__tests__/__snapshots__/social-button.test.tsx.snap b/lib/components/Button/social/__tests__/__snapshots__/social-button.test.tsx.snap index 0639c4a4..5d8aea32 100644 --- a/lib/components/Button/social/__tests__/__snapshots__/social-button.test.tsx.snap +++ b/lib/components/Button/social/__tests__/__snapshots__/social-button.test.tsx.snap @@ -14,7 +14,7 @@ exports[`Social Button Should render Apple Button 1`] = ` xmlns="http://www.w3.org/2000/svg" >
should render correctly with size md 1`] = ` -

- md - trigger -

-`; - -exports[` should render correctly with size sm 1`] = ` -

- sm - trigger -

-`;