/
githubmirror
/
novu
Обзор
Документация
Войти
/
githubmirror
/
novu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
next
apps/webhook/e2e/setup.ts
26 строк
525 B
Richard Fontein
refactor(root, api, dal, design-system, inbound-mail, novui, shared, web, webhook, worker, ws): Replace default imports with named imports (#6014)
08 июл 2024, 22:59
Не верифицирован
08 июл 2024, 22:59
1b1a03a
Код
Авторство
О чём код?
import { DalService } from '@novu/dal'; import { testServer } from '@novu/testing'; import 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(); });