How to configure the environment of the test framework mocha when building applications using create-react-app

is using create-react-app to build applications with its own test framework jest, but how to configure the environment if you want to use mocha instead? Search a lot of blogs, many of them are manually configured webpack configuration to configure! Do bosses have any good blog articles to recommend


resolved! Later, the solution may be sent to the blog home page


Hello, is there a tutorial on the solution?

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-1c34d0e-33f10.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-1c34d0e-33f10.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?