是否有任何 JavaScript 测试框架提供与 Python 的 doctest 大致等价的内容?
function add(a, b) {
/**
Returns the sum of `a` and `b`:
> add(1, 3)
4
Add coerces types to numeric values where possible:
> add('51' + 3)
54
*/
return (a - 0) + (b - 0);
}