Browse Source

test(core): Fix connection mock

Michael Bromley 4 years ago
parent
commit
09d68b24ce
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/core/src/testing/connection.mock.ts

+ 1 - 0
packages/core/src/testing/connection.mock.ts

@@ -37,4 +37,5 @@ export class MockEntityManager implements MockClass<EntityManager> {
     getMongoRepository = jest.fn();
     getMongoRepository = jest.fn();
     getCustomRepository = jest.fn();
     getCustomRepository = jest.fn();
     release = jest.fn();
     release = jest.fn();
+    upsert = jest.fn();
 }
 }