UNPKG

moar-js

Version:

Simple JavaScript files I use across projects

17 lines (12 loc) 421 B
const { testServer, fastifyApp, httpErrorHandler, tracerFastifyLogger, } = require('../../http') const routes = require('./routes') const app = routes(fastifyApp()) const testFastifyServer = testServer() const {start, stop, client} = testFastifyServer(app) tracerFastifyLogger({app, logLevel: 'debug'}) app.setErrorHandler(httpErrorHandler()) global.t = {client, jsonClient: client} beforeAll(start) afterAll(stop)