Skip to content

Commit

Permalink
fix: snapshot and lintstaged wrong path
Browse files Browse the repository at this point in the history
  • Loading branch information
jia-deriv committed Apr 15, 2024
1 parent e688a44 commit 53b261d
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 46 deletions.
2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".lib/**/*.{js,jsx,ts,tsx}": ["npm run test:staged"]
"./lib/**/*.{js,jsx,ts,tsx}": ["npm run test:staged"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports[`Social Button Should render Apple Button 1`] = `
xmlns="http://www.w3.org/2000/svg"
>
<g
clip-path="url(#2985ee5b2c374b48d8881ed9ac01ec09__a)"
clip-path="url(#0a8da6708d08ec3e0aa0b4890e7af9d3__a)"
fill="#fff"
>
<path
Expand All @@ -23,7 +23,7 @@ exports[`Social Button Should render Apple Button 1`] = `
</g>
<defs>
<clippath
id="2985ee5b2c374b48d8881ed9ac01ec09__a"
id="0a8da6708d08ec3e0aa0b4890e7af9d3__a"
>
<path
d="M0 0h32v32H0z"
Expand Down Expand Up @@ -55,7 +55,7 @@ exports[`Social Button Should render Facebook Button 1`] = `
xmlns="http://www.w3.org/2000/svg"
>
<g
clip-path="url(#921bc730889c3f10110214969d5b0559__a)"
clip-path="url(#eefed0f40af5ccee01a60b699b655769__a)"
>
<path
clip-rule="evenodd"
Expand All @@ -70,7 +70,7 @@ exports[`Social Button Should render Facebook Button 1`] = `
</g>
<defs>
<clippath
id="921bc730889c3f10110214969d5b0559__a"
id="eefed0f40af5ccee01a60b699b655769__a"
>
<path
d="M0 0h32v32H0z"
Expand Down Expand Up @@ -102,7 +102,7 @@ exports[`Social Button Should render Google Button 1`] = `
xmlns="http://www.w3.org/2000/svg"
>
<g
clip-path="url(#f34b37979f8c7a9adfb2f0e6b04a3211__a)"
clip-path="url(#1bec3c91c96e92d9628defa9055f76be__a)"
>
<path
d="M32 16.375c0-1.097-.1-2.194-.294-3.273H16.325v6.186h8.787a7.34 7.34 0 0 1-3.256 4.829l5.274 4.02C30.22 25.348 32 21.248 32 16.374"
Expand All @@ -123,7 +123,7 @@ exports[`Social Button Should render Google Button 1`] = `
</g>
<defs>
<clippath
id="f34b37979f8c7a9adfb2f0e6b04a3211__a"
id="1bec3c91c96e92d9628defa9055f76be__a"
>
<path
d="M0 0h32v32H0z"
Expand Down Expand Up @@ -155,7 +155,7 @@ exports[`Social Button Should render Primary Variant 1`] = `
xmlns="http://www.w3.org/2000/svg"
>
<g
clip-path="url(#2985ee5b2c374b48d8881ed9ac01ec09__a)"
clip-path="url(#0a8da6708d08ec3e0aa0b4890e7af9d3__a)"
fill="#fff"
>
<path
Expand All @@ -164,7 +164,7 @@ exports[`Social Button Should render Primary Variant 1`] = `
</g>
<defs>
<clippath
id="2985ee5b2c374b48d8881ed9ac01ec09__a"
id="0a8da6708d08ec3e0aa0b4890e7af9d3__a"
>
<path
d="M0 0h32v32H0z"
Expand Down Expand Up @@ -196,7 +196,7 @@ exports[`Social Button Should render Secondary Variant 1`] = `
xmlns="http://www.w3.org/2000/svg"
>
<g
clip-path="url(#f34b37979f8c7a9adfb2f0e6b04a3211__a)"
clip-path="url(#1bec3c91c96e92d9628defa9055f76be__a)"
>
<path
d="M32 16.375c0-1.097-.1-2.194-.294-3.273H16.325v6.186h8.787a7.34 7.34 0 0 1-3.256 4.829l5.274 4.02C30.22 25.348 32 21.248 32 16.374"
Expand All @@ -217,7 +217,7 @@ exports[`Social Button Should render Secondary Variant 1`] = `
</g>
<defs>
<clippath
id="f34b37979f8c7a9adfb2f0e6b04a3211__a"
id="1bec3c91c96e92d9628defa9055f76be__a"
>
<path
d="M0 0h32v32H0z"
Expand Down Expand Up @@ -249,7 +249,7 @@ exports[`Social Button Should render no label if hideLabel is true 1`] = `
xmlns="http://www.w3.org/2000/svg"
>
<g
clip-path="url(#f34b37979f8c7a9adfb2f0e6b04a3211__a)"
clip-path="url(#1bec3c91c96e92d9628defa9055f76be__a)"
>
<path
d="M32 16.375c0-1.097-.1-2.194-.294-3.273H16.325v6.186h8.787a7.34 7.34 0 0 1-3.256 4.829l5.274 4.02C30.22 25.348 32 21.248 32 16.374"
Expand All @@ -270,7 +270,7 @@ exports[`Social Button Should render no label if hideLabel is true 1`] = `
</g>
<defs>
<clippath
id="f34b37979f8c7a9adfb2f0e6b04a3211__a"
id="1bec3c91c96e92d9628defa9055f76be__a"
>
<path
d="M0 0h32v32H0z"
Expand All @@ -297,7 +297,7 @@ exports[`Social Button Should render properly with fullWidth true 1`] = `
xmlns="http://www.w3.org/2000/svg"
>
<g
clip-path="url(#921bc730889c3f10110214969d5b0559__a)"
clip-path="url(#eefed0f40af5ccee01a60b699b655769__a)"
>
<path
clip-rule="evenodd"
Expand All @@ -312,7 +312,7 @@ exports[`Social Button Should render properly with fullWidth true 1`] = `
</g>
<defs>
<clippath
id="921bc730889c3f10110214969d5b0559__a"
id="eefed0f40af5ccee01a60b699b655769__a"
>
<path
d="M0 0h32v32H0z"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ exports[`CheckboxGroup should render checkbox components according to passed con
</g>
<defs>
<clippath
id="c939feeda8f5dd32ccf922b403da82e9__a"
id="1c46262142574a7a3675d7c9e5e6dfb8__a"
>
<path
d="M0 0h14v22H0z"
Expand Down Expand Up @@ -295,7 +295,7 @@ exports[`CheckboxGroup should render checkbox components according to passed con
</g>
<defs>
<clippath
id="c939feeda8f5dd32ccf922b403da82e9__a"
id="1c46262142574a7a3675d7c9e5e6dfb8__a"
>
<path
d="M0 0h14v22H0z"
Expand Down Expand Up @@ -393,7 +393,7 @@ exports[`CheckboxGroup should render checkbox components according to passed con
</g>
<defs>
<clippath
id="c939feeda8f5dd32ccf922b403da82e9__a"
id="1c46262142574a7a3675d7c9e5e6dfb8__a"
>
<path
d="M0 0h14v22H0z"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ exports[`Checkbox should render info icon if showInfoIcon === true 1`] = `
</g>
<defs>
<clippath
id="c939feeda8f5dd32ccf922b403da82e9__a"
id="1c46262142574a7a3675d7c9e5e6dfb8__a"
>
<path
d="M0 0h14v22H0z"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ exports[`ToggleSwitch matches snapshot when blurred 1`] = `
<button
aria-pressed="false"
class="toggle-switch"
data-testid="toggle-switch"
>
<div
class="toggle-switch__slider"
Expand All @@ -23,7 +22,6 @@ exports[`ToggleSwitch matches snapshot when focused 1`] = `
<button
aria-pressed="false"
class="toggle-switch"
data-testid="toggle-switch"
>
<div
class="toggle-switch__slider"
Expand All @@ -41,7 +39,6 @@ exports[`ToggleSwitch renders correctly when defaultChecked 1`] = `
<button
aria-pressed="true"
class="toggle-switch"
data-testid="toggle-switch"
>
<div
class="toggle-switch__slider enabled"
Expand All @@ -59,7 +56,6 @@ exports[`ToggleSwitch renders correctly when disabled 1`] = `
<button
aria-pressed="false"
class="toggle-switch"
data-testid="toggle-switch"
disabled=""
>
<div
Expand All @@ -78,7 +74,6 @@ exports[`ToggleSwitch renders correctly with default props 1`] = `
<button
aria-pressed="false"
class="toggle-switch"
data-testid="toggle-switch"
>
<div
class="toggle-switch__slider"
Expand All @@ -96,7 +91,6 @@ exports[`ToggleSwitch toggles from off to on and matches snapshot 1`] = `
<button
aria-pressed="true"
class="toggle-switch"
data-testid="toggle-switch"
>
<div
class="toggle-switch__slider enabled"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ exports[`Snackbar calls onActionClick when action button is clicked 1`] = `
</g>
<defs>
<clippath
id="283f9748c1b38a8161c15c2626546e5c__a"
id="bc20b7afc9245ecd8673f572bfeb5871__a"
>
<path
d="M0 0h11v22H0z"
Expand Down Expand Up @@ -107,7 +107,7 @@ exports[`Snackbar calls onClose after a certain duration when Snackbar is open 1
</g>
<defs>
<clippath
id="283f9748c1b38a8161c15c2626546e5c__a"
id="bc20b7afc9245ecd8673f572bfeb5871__a"
>
<path
d="M0 0h11v22H0z"
Expand Down Expand Up @@ -161,7 +161,7 @@ exports[`Snackbar calls onClose when close button is clicked 1`] = `
</g>
<defs>
<clippath
id="283f9748c1b38a8161c15c2626546e5c__a"
id="bc20b7afc9245ecd8673f572bfeb5871__a"
>
<path
d="M0 0h11v22H0z"
Expand Down Expand Up @@ -223,7 +223,7 @@ exports[`Snackbar renders correctly with custom icon 1`] = `
</g>
<defs>
<clippath
id="283f9748c1b38a8161c15c2626546e5c__a"
id="bc20b7afc9245ecd8673f572bfeb5871__a"
>
<path
d="M0 0h11v22H0z"
Expand Down Expand Up @@ -277,7 +277,7 @@ exports[`Snackbar renders correctly without action button 1`] = `
</g>
<defs>
<clippath
id="283f9748c1b38a8161c15c2626546e5c__a"
id="bc20b7afc9245ecd8673f572bfeb5871__a"
>
<path
d="M0 0h11v22H0z"
Expand Down Expand Up @@ -349,7 +349,7 @@ exports[`Snackbar renders with default props 1`] = `
</g>
<defs>
<clippath
id="283f9748c1b38a8161c15c2626546e5c__a"
id="bc20b7afc9245ecd8673f572bfeb5871__a"
>
<path
d="M0 0h11v22H0z"
Expand Down
15 changes: 0 additions & 15 deletions lib/components/tabs/trigger/__snapshots__/trigger.test.tsx.snap

This file was deleted.

0 comments on commit 53b261d

Please sign in to comment.