hunk.code_window:     },
       payload: {
         type: Schema.Types.String,
       },
     },
     schemaOptions
   );
  
hunk.labels: keep keep replace keep keep keep keep keep
hunk.after_edit:       type: Schema.Types.Mixed,
  
hunk.file_path: libs/dal/src/repositories/notification/notification.schema.ts
hunk.type: replace
file: import { DalService } from '@novu/dal';
  import { testServer } from '@novu/testing';
  import * as sinon from 'sinon';
  import { bootstrap } from '../src/bootstrap';
  
  const dalService = new DalService();
  
  before(async () => {
    await testServer.create(await bootstrap());
    await dalService.connect(process.env.MONGO_URL);
  });
  
  after(async () => {
    await testServer.teardown();
    try {
      await dalService.destroy();
    } catch (e) {
      if (e.code !== 12586) {
        throw e;
      }
    }
  });
  
  afterEach(() => {
    sinon.restore();
  });
  