diff options
Diffstat (limited to 'src/routes.test.ts')
| -rw-r--r-- | src/routes.test.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/routes.test.ts b/src/routes.test.ts index 8560f56..1a6032a 100644 --- a/src/routes.test.ts +++ b/src/routes.test.ts @@ -12,6 +12,17 @@ import winston from "winston"; dotenv.config(); +jest.mock("./util/logger", () => ({ + __esModule: true, + default: () => ({ + format: winston.format.combine( + winston.format.splat(), + winston.format.simple() + ), + transports: [new winston.transports.Console({ silent: true })], + }), +})); + test("Environment variable HOST_DIR must be defined", () => { expect(process.env.HOST_DIR).not.toBeUndefined(); }); |
