correct errors after master merge

This commit is contained in:
clauspeterhuebner 2025-11-26 22:55:27 +01:00
parent 60c3749119
commit 1ead1bc4a8
3 changed files with 211 additions and 230 deletions

436
bun.lock

File diff suppressed because it is too large Load Diff

View File

@ -41,7 +41,7 @@ const spySetLocale = jest.spyOn(i18n, 'setLocale')
const spyTranslate = jest.spyOn(i18n, '__')
describe('sendEmailTranslated', () => {
let result: Record<string, unknown> | boolean | null
let result: Record<string, unknown> | boolean | null | Error
describe('config email is false', () => {
beforeEach(async () => {

View File

@ -1,5 +1,6 @@
import { Decimal } from 'decimal.js-light'
import { CONFIG } from '../config'
import { mock, jest, describe, it, expect, beforeAll, beforeEach, afterAll } from 'bun:test'
import * as sendEmailTranslatedApi from './sendEmailTranslated'
import {
@ -25,7 +26,7 @@ CONFIG.EMAIL_SMTP_HOST = testMailServerHost
CONFIG.EMAIL_SMTP_PORT = testMailServerPort
CONFIG.EMAIL_TLS = testMailTLS
jest.mock('nodemailer', () => {
mock.module('nodemailer', () => {
return {
__esModule: true,
createTransport: jest.fn(() => {