舉例來說,把 App.js 和 App.test.js 放在同一個資料夾中,如此在執行測試時只需要寫 import App from './App' 即可。 Jest CLI. 當執行 npm test 時, ...
確定! 回上一頁