This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { createLogger, transports } = require('winston'); | |
| const defaultLevel = process.env.LOG_LEVEL || 'info'; | |
| const options = { | |
| exitOnError: false, | |
| level: defaultLevel | |
| }; | |
| const logger = new createLogger(options); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { expect } from 'chai'; | |
| import { agent as request } from 'supertest'; | |
| import 'mocha'; | |
| import App from '../src/index'; | |
| describe('baseRoute', () => { | |
| it('should GET', async () => { | |
| const res = await request(App).get('/'); | |
| // we check the status |
OlderNewer