摘要:
https://github.com/kentcdodds/react-testing-library-course/commit/1148e920b8d055d9ca9ef1c372e233d2e950ff1f User-event: https://testing-library.com/doc 阅读全文
posted @ 2022-10-30 21:06
Zhentiw
阅读(77)
评论(0)
推荐(0)
摘要:
Zod Example: number: import { expect, it } from "vitest"; import { z } from "zod"; const numberParser = z.number(); export const toString = (num: unkn 阅读全文
posted @ 2022-10-30 17:40
Zhentiw
阅读(147)
评论(0)
推荐(0)
摘要:
Sometimes we want to limit the range of numbers... For examples. type result = NumberRange<2 , 9> // | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 /* _____________ 阅读全文
posted @ 2022-10-30 17:05
Zhentiw
阅读(49)
评论(0)
推荐(0)
摘要:
Construct a tuple with a given length. For example type result = ConstructTuple<2> // expect to be [unknown, unkonwn] /* _____________ Your Code Here 阅读全文
posted @ 2022-10-30 16:39
Zhentiw
阅读(28)
评论(0)
推荐(0)

浙公网安备 33010602011771号