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?

Menu