浏览代码

test(core): Fix connection mock

Michael Bromley 4 年之前
父节点
当前提交
09d68b24ce
共有 1 个文件被更改,包括 1 次插入0 次删除
  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();
     getCustomRepository = jest.fn();
     release = jest.fn();
+    upsert = jest.fn();
 }