Master
NOT ON THE CURRENT EDITION
This blip is not on the current edition of the Radar. If it was on one of the last few editions it is likely that it is still relevant. If the blip is older it might no longer be relevant and our assessment might be different today. Unfortunately, we simply don't have the bandwidth to continuously review blips from previous editions of the RadarUnderstand more
Published: Nov 20, 2019
Last Updated: Oct 28, 2020
Oct 2020
采纳?

jest-when 是一个轻量级的 JavaScript 库,为 Jest 提供匹配模拟函数入参的能力。Jest 是全栈测试的好工具,而 jest-when 则可以帮助检查模拟函数接收的参数是否符合期望,这样就能够为依赖较多的模块写出更健壮的单元测试。jest-when 易于使用,并支持多种匹配器。因此在需要匹配模拟函数入参时,我们会默认选择 jest-when。

Nov 2019
试验?

jest-when是一个轻量级的JavaScript库,通过匹配模拟函数调用的参数完善了Jest的功能。Jest是测试整个技术栈的好工具,而jest-when可以帮助检查模拟函数接收的参数。这样就能够为具有很多依赖的模块写出更强壮的单元测试。