mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
- Fix the sending of the multiple times registrars name to the email owner. - Clarify the logging of the multiple times registrars name and the email owners name.
39 lines
886 B
TypeScript
39 lines
886 B
TypeScript
import { backendLogger as logger } from '@/server/logger'
|
||
// Wolle: import i18n from 'i18n'
|
||
import { i18n } from '@/server/localization'
|
||
|
||
jest.setTimeout(1000000)
|
||
|
||
jest.mock('@/server/logger', () => {
|
||
const originalModule = jest.requireActual('@/server/logger')
|
||
return {
|
||
__esModule: true,
|
||
...originalModule,
|
||
backendLogger: {
|
||
addContext: jest.fn(),
|
||
trace: jest.fn(),
|
||
debug: jest.fn(),
|
||
warn: jest.fn(),
|
||
info: jest.fn(),
|
||
error: jest.fn(),
|
||
fatal: jest.fn(),
|
||
},
|
||
}
|
||
})
|
||
|
||
jest.mock('@/server/localization', () => {
|
||
const originalModule = jest.requireActual('@/server/localization')
|
||
return {
|
||
__esModule: true,
|
||
...originalModule,
|
||
i18n: {
|
||
init: jest.fn(),
|
||
// configure: jest.fn(),
|
||
// setLocale: jest.fn(),
|
||
},
|
||
}
|
||
})
|
||
|
||
// Wolle: console.log('testSetup.js – i18n: ', i18n)
|
||
export { logger, i18n }
|