- Jack should be the best mocking tool for JavaScript TDD
- Jack code should be easy to read and easy to write
- Be compatible with all major JavaScript testing frameworks
- Simple mocking tasks should require short code
- Complex mocking tasks should be supported without making simple tasks harder
(Current version is 0.0.2)
- Compatibility with YUI Test
- Support for
jack.verify()
andjack.when()
syntax to split setup code and assertion code.
?
- Support for making a stub throw an exception (Error)
- Export functions to global namespace to avoid the need to write “jack.” so often: expect(), create(), when(), verify()
- .returnMock(name, [functionNames]) and .returnMock([functionNames])
- jack.get(name) to return named mock
- Integration with JsUnit
- Verify the order of function calls
- Compatibility with env.js
- When reporting an expectation that was not met, report other calls to the same function.
- Report file name and line number for failures
- Refactor to reusable parts