假设我正在使用Jest对两个相同类型的数组进行断言,将它们称为actual和expected。使用arrayContaining匹配器,可以很容易地测试expected中的所有元素都在actual中 test('ALL elements in expected are in actual', ((willFail))
}); 相反,ex
这是个棘手的问题,我会尽量解释清楚。boolean", } }错误:
path: $[0].breed[*], actual: [], expected: {canaan=##string, akita=##string}, reason: actual value does not contain e