React mocha enzyme chai keeps reporting errors.

react unit test, input npm test in cmd keeps reporting errors

clipboard.png

require
clipboard.png

App.test.js

clipboard.png
package.json

clipboard.png

Mar.05,2021

Why using mocha, when configuring with react testing is troublesome because babel is required.

it is recommended to use jest for testing.

if you have to use mocha, try it:

mocha --compilers js:babel-core/register ...

reference article:

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2b8b2-2baa0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2b8b2-2baa0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?