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