首页 新闻 会员 周边

typescript react native中的it函数是什么?

0
悬赏园豆:5 [已解决问题] 解决于 2019-06-22 14:25

在看 typescript react native,这个 it 函数是什么?

import React from 'react'
import renderer from 'react-test-renderer'
import { Hello } from "../Hello"

it("renders correctly with defaults", () => {
  const button = renderer.create(<Hello name="World" enthusiasmLevel={1} />).toJSON()
  expect(button).toMatchSnapshot()
})
zanetti的主页 zanetti | 初学一级 | 园豆:128
提问于:2019-06-16 21:43
< >
分享
最佳答案
0

来自 jest 测试框架: https://jestjs.io/docs/en/api.html#testname-fn-timeout

ittest 的别名。

收获园豆:5
不如隐茶去 | 小虾三级 |园豆:559 | 2019-06-17 09:44

谢谢!终于找到答案了

zanetti | 园豆:128 (初学一级) | 2019-06-22 14:25
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册