Yoon Geon-ung
@yoongeonung
Reviews Written
12
Average Rating
5.0
Posts
Q&A
Heroku ๋น๋ํฉ ์ค์ ๊ด๋ จ ์ง๋ฌธ์ ๋๋ค ใ ใ
shopping-mall/ ์์ชฝ์ด deploy๋์ผํ๋๊ฑฐ ์๋๊ฐ์? ๊ทธ ๊ฒ์ ๋๋ ํ ๋ฆฌ์์ deployํ๋ ค๊ณ ํด์ package.json์ด ์๋ค๊ณ ์๋ฌ๋๋๊ฑฐ ๊ฐ์๋ฐ์
- 0
- 1
- 599
Q&A
react-query ์๋ฌ
์ฟผ๋ฆฌ ํด๋ผ์ด์ธํธ์ชฝ์์ ์๋ฌ๊ฐ ์๋ค์ ๋ฐํ๊ฐ์ด ์ ๋๋ก ๋ฐํ๋๊ณ ์๋์ง ํ์ธํด์ฃผ์ธ์ํน์https://github.com/roy-jung/livecode-study_mall ๊ฐ์ฌ๋ ๋ฆฌํฌ์งํ ๋ฆฌ ๋ค์ด๊ฐ์ ๋น๊ตํด๋ณด์ธ์ฉ
- 0
- 1
- 1K
Q&A
on/off ๋ฒํผ ์ง๋ฌธ
render(); const onOffBtnEl = screen.getByTestId('on/off-btn'); fireEvent.click(onOffBtnEl); const plusBtnEl = screen.getByTestId('plus-btn'); const minusBtnEl = screen.getByTestId('minus-btn'); expect(plusBtnEl).toBeDisabled(); expect(minusBtnEl).toBeDisabled(); fireEvent.click(onOffBtnEl); expect(plusBtnEl).toBeEnabled(); expect(minusBtnEl).toBeEnabled(); ํ๋ฆฌ๋ทฐ๋ก ๋ณด๋ฉด ์ฝ๋๊ฐ ์๋ณด์ด๋๋ฐ ๋๊ธ ์์ฑ๋ง ๋๋ฅด๋ฉด ๊ฒ์ ์ผ๋ก ๋ณํจ....
- 0
- 1
- 251
Q&A
๋ง์ด๋์ค ๋ฒํผ์ ํ ์คํธํ ๋ toHaveTextContent(1)๋ก ํด๋ ํจ์ค๊ฐ ๋ฉ๋๋ค.
render();const minusBtnEl = screen.getByTestId('minus-btn');fireEvent.click(minusBtnEl);const counterVal = Number(screen.getByTestId('counter').textContent);expect(counterVal).toBe(-1);
- 0
- 1
- 310
Q&A
๋น ์ด๋ฆ ์ค์ ๊ด๋ จ ์ง๋ฌธ
@Component ์ด๋ฆ์ง์ ์์ด ํ๋ค๊ฐ ์๋ฌ๋์๋๋ถ๋ค ์ฐธ๊ณ ์ฉ BasicController๋ ๋น์ผ๋ก ๋ฑ๋ก๋๋๋ฐ HelloBean์ด ๋ด๋ถ ํด๋์ค๋ก ๋ฑ๋ก๋์ด์ basicController.HelloBean์ผ๋ก ๋จ๋๊ฒ ๊ฐ์ต๋๋ค. ๋ด๋ถํด๋์ค๊ฐ ์๋๋ผ ๋ฐ์์ ์ง์ ๋น์ผ๋ก ๋ฑ๋กํด์ฃผ์๋ฉด ์๋ฌ์์ด ํต๊ณผ๋ฉ๋๋ค. ์๋ ๋ฑ๋ก๋ฐฉ๋ฒ @Configurationpublic class AppConfig { @Bean public HelloBean helloBean() { return new HelloBean(); } static class HelloBean { public String hello(String data) { return "Hello " + data; } }}
- 2
- 5
- 466




