我試圖讓流星TDD,根據這個帖子http://blog.xolv.io/2013/04/unit-testing-with-meteor.html流星和TDD的領先應用
我寫我的test.js,但是當我啓動應用程序時,我得到這個錯誤:
ReferenceError: describe is not defined
at app/test/unit/test.js:1:16
at C:\Programmi\Meteor\examples\leaderboard\.meteor\local\build\server\server.js:294:12
at Array.forEach (native)
at Function._.each._.forEach
(C:\Programmi\Meteor\lib\node_modules\underscore\underscore.js:79:11)
at run
(C:\Programmi\Meteor\examples\leaderboard\.meteor\local\build\server\server.js:227:7)
謝謝安德烈,但安裝茉莉花後 「npm install jasmine-node」 問題依然存在 –