process . env . NODE_ENV = "test" ; const pkgInfo = require ( `${ process . cwd ( ) }/package.json` ) ; import { expect } from "chai" ; import * as request from "supertest" ; import { ServerContainer } from "./utils/server" ; describe ( "Express application" , ( ) => { it ( "Express instance type is function" , ( ) => { expect ( typeof ServerContainer . server ) . to . equal ( "function" ) ; } ) ; it ( "API status is OK 200" , ( done ) => { request ( ServerContainer . server ) . get ( "/api/v1/status" ) . expect ( 200 , done ) ; } ) ; } ) ;