Jest 使用上有點像Mocha + Chai,除了測試環境外還以自定義的斷言,提供多種編寫語意化的測試情境。 // ./sum.js function sum(a, b) { return a + ...
確定! 回上一頁