Use react-test-renderer . The test renderer doesn't care about element types and will happily accept e.g. SomeComponent . You could check ...
確定! 回上一頁