In this experiment, knex is used as the target that we want to stub out. In production, we want to use Knex properly, and in development we want to replace it with our own functions.
There are three scripts in the structure:
run-real
runs it as productionrun-stub
runs it as developmentcleanup
is a cleanup script
run-real
will produce a real sqlite3 db file in the test-npm directory.
run-stub
will produce the output RUNNING STUB