create-benm-app
Version:
Boilerplate for REST API with Node.js, ExpressJS, and MongoDB
17 lines (15 loc) • 454 B
JavaScript
//During the automated test the env variable, We will set it to "test"
process.env.NODE_ENV = "test";
process.env.MONGODB_URL = "mongodb://127.0.0.1:27017/benm-app";
//Require the dev-dependencies
let chai = require("chai");
let chaiHttp = require("chai-http");
let server = require("../src/app");
let should = chai.should();
chai.use(chaiHttp);
//Export this to use in multiple files
module.exports = {
chai: chai,
server: server,
should: should
};