jiaopianjun / echat

基于Vue的点对点聊天项目
142 stars 39 forks source link

npm run unit #1

Open bemzhao opened 6 years ago

bemzhao commented 6 years ago

PS D:\echat> npm run unit

y@1.0.0 unit D:\echat jest --config test/unit/jest.conf.js --coverage

● Deprecation Warning:

Option "mapCoverage" has been removed, as it's no longer necessary.

Please update your configuration.

Configuration Documentation: https://facebook.github.io/jest/docs/configuration.html

FAIL test\unit\specs\HelloWorld.spec.js ● Test suite failed to run

Configuration error:

Could not locate module @/components/HelloWorld (mapped as D:\echat\src\components/HelloWorld)

Please check:

"moduleNameMapper": {
  "/^@\/(.*)$/": "D:\echat\src\$1"
},
"resolver": undefined
------------------- ---------- ---------- ---------- ---------- ------------------- File % Stmts % Branch % Funcs % Lines Uncovered Line #s
All files 0 0 0 0
src 0 0 0 0
App.vue 0 0 0 0 11,15,18,19,21,22
src/components 0 0 0 0
AddContacts.vue 0 0 0 0 ... 45,52,53,55,56
Chat.vue 0 0 0 0 ... 34,135,137,138
ChatView.vue 0 0 0 0 ... 53,155,156,157
Contacts.vue 0 0 0 0 ... 57,258,260,261
ContactsView.vue 0 0 0 0 ... 89,90,92,93,94
Index.vue 0 0 0 0 ... 76,77,78,79,80
RulePop.vue 0 0 0 0 ... 48,53,54,55,56
navBar.vue 0 100 0 0 12
src/socket 0 100 0 0
socket.js 0 100 0 0 1,2,3,4,5,6,8,9
src/store 0 0 0 0
chatrecord.js 0 100 0 0 9,10
contacts.js 0 100 0 0 8,9
index.js 0 100 100 0 1,2,6,7,8,9,10,11
menustore.js 0 0 0 0 ... 17,18,19,20,21
peinfo.js 0 100 0 0 7
recordlist.js 0 0 0 0 ... 20,21,24,25,27
rulepop.js 0 100 0 0 9,10,11
socket.js 0 0 0 0 ... 16,19,20,21,22
src/until 0 0 0 0
axios.js 0 0 0 0 ... 13,114,116,118
------------------- ---------- ---------- ---------- ---------- -------------------

Test Suites: 1 failed, 1 total Tests: 0 total Snapshots: 0 total Time: 30.353s Ran all test suites. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! y@1.0.0 unit: jest --config test/unit/jest.conf.js --coverage npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the y@1.0.0 unit script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\bem.zhao\AppData\Roaming\npm-cache_logs\2018-05-04T07_58_05_579Z-debug.log

bemzhao commented 6 years ago

npm run unit 到这一步出了问题,请问可以帮忙看下吗