Why Explict Invocation of Callback is Needed in setUp and tearDown?
- Dominant language
- JavaScript
- Stars
- 1.9k
- Forks
- 359
- PR merge metrics
- No merged PRs in 30d
Description
I got to know nodeunit by reading this article http://caolanmcmahon.com/posts/unit_testing_in_node_js which should been written when nodeunit is at earlier phase. It doesn't mention that explicit invocation of callback function in setUp and tearDown.
There is no documentation about which arguments should be sent by invoking callback in setUp and tearDown. So, I suppose, in most cases, callback is just invoked without any arguments.
Why bother to require explicit invocation of this callback? can't it just be invoked by the system after setUp and tearDown is invoked?
Thanks,
-Morgan
Contributor guide
No contributing guide indexed for this repository
Research direction
Read the linked article and compare its setup and teardown examples with nodeunit's current documentation. Determine which callback arguments and invocation behavior need explanation, then document the rationale and expected usage; no specific file or test is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100