如何在不使用Jesttesting运行器的情况下使用Jest的断言库?
Jest创造了这个全球性的expect
。 我怎样才能使用, 而不使用他们的testing赛跑者? 即,我必须input/要求什么?
该模块简单地称为expect
例如
import expect from 'expect' expect(1 + 1).toBe(2)
你可以在Jest lerna repo和npm上的单个包中看到它
- 从'ReactDebugTool.js'找不到模块'react / lib / ReactComponentTreeHook'
- 让Jest在testing时忽略无用的导入
- 为什么在使用笑话testing节点应用程序时看不到控制台日志输出
- 使用TFS 2015运行Jestunit testing
- 在IO.js 1.4.3中使用require()时Jest(JS)分段错误11
- 如何使用Node.js执行集成testing?
- testing后closures服务器和数据库连接
- NodeJS – 在process.oncallback中testingunit testingsetTimeout
- reactJs Jest:`jsdom 4.x以前只能用于io.js,而不是Node.jsT: