如何在缘分上使用jest?

问题描述 投票:11回答:1

我想使用jest框架。所以在karma.conf文件中,我在framework字段中加入了jest。但是当我在karma.conf文件中加入jest时,它却给出了 "WARN [reporter].Can not load "jest", it is not registered!"的错误信息。Can not load "jest", it is not registered!" when I run karma start. 我在package.json文件的依赖关系中包含了jest包("jest":"~0.1.39","jest-cli":"~0.4.1")。

谁能给我一些在karma中使用jest的例子?

karma-runner karma-jasmine jestjs
1个回答
1
投票

根据这个问题 https:/github.comfacebookjestissues139。 在真实的浏览器中运行jest并不容易。

© www.soinside.com 2019 - 2024. All rights reserved.