expect() Matchers
单选题 简单
题目
哪个的 following 是有效 Jest matcher?
提示
Jest 有许多 matchers.
解释
Jest provides 许多 matchers: toBe() for strict equality, toEqual() for deep equality, toContain() for 检查数组/字符串 membership, toBeTruthy(), toHaveLength(), and 许多更多. 所有的 listed options 是有效 Jest matchers.
相关资源
相关课程
- Jest 基础
获取开始使用 Jest.
查阅不认识的术语
新手友好的术语表用大白话解释编程术语——变量、函数、DOM、Promise 等等。
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。
动手做项目
通过引导式项目应用所学,含起始代码与解决方案。