jasmine-expect 找不到 jest、jasmine v2.x 或 jasmine v1.x

jasmine-expect cannot find jest, jasmine v2.x, or jasmine v1.x

我正在尝试 单元测试 jasmine-expect。但是我不断收到错误消息:

jasmine-expect cannot find jest, jasmine v2.x, or jasmine v1.x

我已经安装了最新版本的茉莉花。我错过了什么?

package.json

{
  "name": "js",
  "version": "1.0.0",
  "description": "",
  "main": "Person.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "add-matchers": "^0.4.0",
    "babel-cli": "^6.22.2",
    "babel-core": "^6.22.1",
    "babel-loader": "^6.2.10",
    "babel-preset-es2015": "^6.22.0",
    "babel-preset-react": "^6.22.0",
    "jasmine": "^2.5.3",
    "jasmine-expect": "^3.6.0",
    "jest": "^18.1.0",
    "webpack": "^2.2.1"
  },
  "dependencies": {
    "deep-freeze": "0.0.1"
  }
}

我的代码:

'use strict';
import expect from 'jasmine-expect';

console.log('It is working...');

错误信息:

我已经切换到 mjackson expect 图书馆。它似乎工作正常。谢谢

请参阅 https://github.com/JamieMason/Jasmine-Matchers/tree/master/examples/jest 了解 jasmine-expect with jest 的工作示例,谢谢。