測試snapshot. 1. import { render } from '@testing-library/react';. 2. . 3. test('Match snapshot', () => {. 4. const { asFragment, getByTestId } = render(.
確定! 回上一頁