practicalmeteor / meteor-mocha

Depreciated - Write meteor package tests with mocha and run them in the browser or from the command line with spacejam.
https://atmospherejs.com/practicalmeteor/mocha
Other
41 stars 13 forks source link

Documented hooks not supported #103

Open Torgen opened 6 years ago

Torgen commented 6 years ago

In Mocha, the before/after/beforeEach/afterEach hooks take a description and a function; if you pass only a function, it generates a description for you. This package's versions of those hooks take only a function. Someone reading the mocha docs (like me) and attempting to annotate their hooks would then get an opaque error like:

${testsuite_name} "before each" hook: wrappedFunction for "${testcase_name}":
TypeError: fn.call is not a function
at run (packages/practicalmeteor_mocha-core.js:90:16)