時,這裏是我的package.json:獲取絕對來自玩笑NO輸出運行測試
"jest": {
"cacheDirectory": "/tmp/jestCache",
"scriptPreprocessor": "node_modules/babel-jest",
"modulePaths": [
"<rootDir>/app/static/react/"
],
"moduleDirectories": [
"node_modules",
"app/static/react/app"
],
"testPathDirs": [
"app/static/react/__tests__"
],
"testRegex": "(.*Tests?\\.jsx?)$"
}
當我運行jest --verbose
,測試運行,但據我可以沒有辦法溝通東西到stdout通過拋出錯誤告訴除外。 console.log
本身不存在。我使用的是16.0.2。我讀過關於automocking和控制檯緩衝的最新變化,但似乎我錯過了更基本的東西。
測試否則運行良好。
在OSX優勝美地,節點7.4,npm 4.0.5上工作。