@@ -8,6 +8,7 @@ const { Basic } = composeStories(stories);
88test ( "SVG ์์๋ฅผ ๋ ๋๋งํ๋ค" , ( ) => {
99 const { container } = render ( < Basic /> ) ;
1010
11+ // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access
1112 expect ( container . querySelector ( "svg" ) ) . toBeInTheDocument ( ) ;
1213} ) ;
1314
@@ -20,6 +21,7 @@ test.each([
2021] as const ) ( "%s ํฌ๊ธฐ์ ์ฌ๋ฐ๋ฅธ ํด๋์ค๋ฅผ ์ ์ฉํ๋ค" , ( size , className ) => {
2122 const { container } = render ( < Basic size = { size } /> ) ;
2223
24+ // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access
2325 expect ( container . querySelector ( "svg" ) ) . toHaveClass ( className ) ;
2426} ) ;
2527
@@ -33,6 +35,7 @@ test.each([
3335] as const ) ( "%s ํค์ ์ฌ๋ฐ๋ฅธ ์์ ํด๋์ค๋ฅผ ์ ์ฉํ๋ค" , ( tone , className ) => {
3436 const { container } = render ( < Basic tone = { tone } muted = { false } /> ) ;
3537
38+ // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access
3639 expect ( container . querySelector ( "svg" ) ) . toHaveClass ( className ) ;
3740} ) ;
3841
@@ -42,6 +45,7 @@ test.each([
4245] as const ) ( "muted๊ฐ %s์ผ ๋ ์ฌ๋ฐ๋ฅธ ํด๋์ค๋ฅผ ์ ์ฉํ๋ค" , ( muted , className ) => {
4346 const { container } = render ( < Basic tone = "neutral" muted = { muted } /> ) ;
4447
48+ // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access
4549 expect ( container . querySelector ( "svg" ) ) . toHaveClass ( className ) ;
4650} ) ;
4751
@@ -62,6 +66,7 @@ test.each([
6266 "%s ํค๊ณผ muted=%s ์กฐํฉ์ผ๋ก SVG ์์๋ฅผ ๋ ๋๋งํ๋ค" ,
6367 ( tone , muted ) => {
6468 const { container } = render ( < Basic tone = { tone } muted = { muted } /> ) ;
69+ // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access
6570 const svg = container . querySelector ( "svg" ) ;
6671
6772 expect ( svg ) . toBeInTheDocument ( ) ;
@@ -83,6 +88,7 @@ test.each([
8388 [ "info" , true ] ,
8489] as const ) ( "%s ํค๊ณผ muted=%s ์กฐํฉ์ผ๋ก class ์์ฑ์ ๊ฐ์ง๋ค" , ( tone , muted ) => {
8590 const { container } = render ( < Basic tone = { tone } muted = { muted } /> ) ;
91+ // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access
8692 const svg = container . querySelector ( "svg" ) ;
8793
8894 expect ( svg ) . toHaveAttribute ( "class" ) ;
@@ -105,6 +111,7 @@ test.each([
105111 "%s ํค๊ณผ muted=%s ์กฐํฉ์ผ๋ก ์์ ํด๋์ค๋ฅผ ํฌํจํ๋ค" ,
106112 ( tone , muted ) => {
107113 const { container } = render ( < Basic tone = { tone } muted = { muted } /> ) ;
114+ // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access
108115 const svg = container . querySelector ( "svg" ) ;
109116
110117 const hasColorClass = Array . from ( svg ?. classList || [ ] ) . some (
0 commit comments