準備專案

  • 寫一些測試

  • 安裝排程:mocha-phantomjs :

    meteor add dispatch:mocha-phantomjs
    
  • 將 test-command 新增到 package.json 中。

    {    
      "name": "awesome meteor package",
      "scripts": {
        "test": "meteor test --driver-package dispatch:mocha-phantomjs --once"
      }
    }
    
  • 確保你可以在專案根目錄中執行 npm test。