为什么“ npm test”只花一个测试那么长时间?

After npx create-react-app my-app I run npm test and I get the following:

 PASS  src/App.test.js
  ✓ renders learn react link (48ms)

Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        2.555s
Ran all test suites.

Watch Usage: Press w to show more.

Why does it take 2.5s to run the entire suite, but only 48ms to run the test? How can I speed up this process? Thanks!

评论