我的 Jest 快照测试在 Travis 上始终失败,但有以下区别:
- "_instance": Constructor {
+ "_instance": {
开发依赖项包括:
"babel-jest": "^19.0.0",
"jest": "^19.0.2",
"react-addons-test-utils": "^15.4.2",
"babel-preset-es2015": "^6.22.0",
"babel-preset-react": "^6.23.0",
"react-test-renderer": "^15.4.2",
"enzyme": "^2.7.1",
"enzyme-to-json": "^1.5.0",
"react": "^15.2.0",
"react-dom": "^15.2.1"
在本地和 Travis 上使用 Node 7.0.0。
有任何想法吗?