The test suite looks for an environment variable called , replacing with the path to your config file, and the config file is valid, the test suite should run with npm test.
Also note that you will have to create the appropriate database(s) for the test suite to run.
We found the following projects using Bookshelf, but there can be more: You sometimes need to manipulate data from the database into the correct types.
Maybe you have a TEXT field that is actually a comma separated list of tags, or a blob field with JSON that you want to parse.
Sometimes you need to dive a bit further into the various calls and see what all is going on behind the scenes.
I'd recommend node-inspector, which allows you to debug code with At the start of your application code will catch any errors not otherwise caught in the normal promise chain handlers, which is very helpful in debugging.
With a concise, literate codebase, Bookshelf is simple to read, understand, and extend.