我在测试Meteor时遇到问题。我刚开始使用这个框架,我正在按照官方教程创建示例待办事项应用程序。 在这篇文章中:https://www.meteor.com/tutorials/blaze/testing教程解释了如何为meteor安装mocha包以及如何运行测试,问题是在完成所有段落后(代码与教程相同)我运行流星带有测试命令的服务器(meteor test --driver-package practicalmeteor:mocha)但是我收到了这个错误:
ReferenceError: descibe is not defined
at Suite.<anonymous> (imports/api/tasks.tests.js:9:9)
at context.describe.context.context (/Users/ste/.meteor/packages/practicalmeteor_mocha-core/.1.0.1.yt8rvz++os+web.browser+web.cordova/npm/node_modules/mocha/lib/interfaces/bdd.js:47:10)
at meteorInstall.imports.api.tasks.tests.js (imports/api/tasks.tests.js:8:5)
at fileEvaluate (packages/modules-runtime.js:197:9)
at require (packages/modules-runtime.js:120:16)
at /private/var/folders/6b/vnbc8yxx3pv21r1bt6_1kvkr0000gn/T/meteor-test-runr4itrg/.meteor/local/build/programs/server/app/app.js:191:1
at /private/var/folders/6b/vnbc8yxx3pv21r1bt6_1kvkr0000gn/T/meteor-test-runr4itrg/.meteor/local/build/programs/server/boot.js:303:34
at Array.forEach (native)
at Function._.each._.forEach (/Users/ste/.meteor/packages/meteor-tool/.1.4.3_2.p6z7ay++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
at /private/var/folders/6b/vnbc8yxx3pv21r1bt6_1kvkr0000gn/T/meteor-test-runr4itrg/.meteor/local/build/programs/server/boot.js:128:5
Exited with code: 1
您的应用程序崩溃了。等待文件更改。 我该如何解决这个问题?