📌  相关文章
📜  react native jest snapshot - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:42.252000             🧑  作者: Mango

代码示例1
// __tests__/Intro-test.js
import React from 'react';
import renderer from 'react-test-renderer';
import Intro from '../Intro';

test('renders correctly', () => {
  const tree = renderer.create().toJSON();
  expect(tree).toMatchSnapshot();
});