eslint --fix for unused variables. Also try putout pluggable code transformer with @putout/plugin-remove-unused-variables plugin which is more powerful.
npm i eslint-remove-line -g
FORCE_COLOR=1 eslint | eslint-remove-line
- putout - pluggable code transformer
- @cloudcmd/stub - simplest
sinon.stub()
alternative with diff support - supertape - tape with superpowers
- sinon-called-with-diff - sinon
calledWith
diff - try-to-tape -
try catch
for async tape tests - try-catch - functional try-catch wrapper.
- try-to-catch - functional try-catch wrapper for promises.
MIT