1
JEST 테스트에서 getComputedStyle ()이 Chrome / Firefox DevTools의 계산 된 스타일에 다른 결과를 반환하는 이유
material-uiMyStyledButton 기반 사용자 정의 버튼 ( )을 작성했습니다 . Button import React from "react"; import { Button } from "@material-ui/core"; import { makeStyles } from "@material-ui/styles"; const useStyles = makeStyles({ root: { minWidth: 100 } }); function MyStyledButton(props) { const buttonStyle = useStyles(props); const { children, width, ...others } = …