/
githubmirror
/
novu
Обзор
Документация
Войти
/
githubmirror
/
novu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
next
libs/application-generic/jest.setup.js
18 строк
453 B
Himanshu Garg
feat(application-generic, dal): enhance notification job creation with template validation and error handling fixes NV-8378 (#12065)
27 июл 2026, 11:14
Не верифицирован
27 июл 2026, 11:14
e59a7da
Код
Авторство
О чём код?
require('dotenv').config({ path: './src/.env.test' }); jest.mock('newrelic', () => ({ startBackgroundTransaction: jest.fn((name, group, handler) => { if (typeof handler === 'function') { return handler(); } }), startSegment: jest.fn((name, record, handler) => { if (typeof handler === 'function') { return handler(); } }), getTransaction: jest.fn(() => ({ end: jest.fn(), })), noticeError: jest.fn(), }));