title: How to mock Sequelize functions in Typescript
body: <p>I am writing unit test cases and I have sequelize.transaction in my function. How to I mock the sequelize.transaction function.</p>
  <p>My function looks like</p>
  <pre><code>create = async (req: Request) =&gt; {
  
  await sequelize.transaction(async (t) =&gt; {
    // Lock Test Balance Row
    const testBalance = await this.testBalanceDAL.findByTestTypeAndUserIdForUpdate(
      testTypeId,
      userId,
      t
    );.....`
  </code></pre>