預設的情況下, jest 會去找專案資料夾中的 tests 資料夾:. $ mkdir __tests__. Copy. 執行測試:. $ npm test -- --coverage # --coverage 會顯示 ...
確定! 回上一頁