Make it easy to use with existing tape test.
Raynos opened this issue · comments
Would love a prova --tape test.js
command that rewrites the test.js
file and all its dependencies so that require('tape')
becomes require('prova')
.
This way whether we use tape
or prova
is a per user decision rather then a permanent once in the code decision.
How about:
var tape = require(process.env.with || "tape")
so we can do
with=prova node test
@azer that could work but would require rewriting my codebase.
My workflow would be to use prova
locally for a week or two at work and then recommend changing to it once I feel confident with it. I would like to do this without editing my tape codebase.
@azer @Raynos Using either https://github.com/thlorenz/proxyquire or https://github.com/felixge/node-sandboxed-module you should be able to add a --tape option to prova right?