From 8d1789f66cfed727531cecc50986045e0b76b69f Mon Sep 17 00:00:00 2001 From: Danil Kovtonyuk Date: Fri, 10 Dec 2021 18:47:15 +1000 Subject: [PATCH] fix: e2e test --- test/app.e2e-spec.ts | 2 +- test/jest-e2e.json | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/test/app.e2e-spec.ts b/test/app.e2e-spec.ts index 50cda62..4027ec0 100644 --- a/test/app.e2e-spec.ts +++ b/test/app.e2e-spec.ts @@ -19,6 +19,6 @@ describe('AppController (e2e)', () => { return request(app.getHttpServer()) .get('/') .expect(200) - .expect('Hello World!'); + .expect('This is tornado.cash Relayer service. Check the /status for settings'); }); }); diff --git a/test/jest-e2e.json b/test/jest-e2e.json index e9d912f..c1b2225 100644 --- a/test/jest-e2e.json +++ b/test/jest-e2e.json @@ -1,9 +1,12 @@ { "moduleFileExtensions": ["js", "json", "ts"], - "rootDir": ".", + "rootDir": "../", "testEnvironment": "node", "testRegex": ".e2e-spec.ts$", "transform": { "^.+\\.(t|j)s$": "ts-jest" + }, + "moduleNameMapper": { + "^@/(.*)$": "/src/$1" } }