Atomアドベントカレンダー2017の10日目の記事です。 今回は前回紹介したatom-mocha-test-runnerの詳しい使い方を紹介します。 atom-mocha-test-runnerをテストランナーに設定する まずは前回紹介したようにatom-mocha-test-runnerでテストが走るようにセットアップしましょう。 atom-mocha-test-runner, chaiをインストール pakcage.jsonに"atomTestRunner": "atom-mocha-test-runner"を追加 spec/にあるspec.jsを.test.jsにリネーム ここまでできたらapm testを実行しましょう。 Error: Invalid Chai property: toBe. Did you mean "to"? といったAtomが元々用意してくれていたアサーショ