fix: remove unnecessary test assertions and improve act usage

This commit is contained in:
2025-02-22 23:58:34 +01:00
parent 725bbe5d50
commit 5affec766f
5 changed files with 47 additions and 12 deletions

View File

@@ -8,6 +8,14 @@ jest.mock('next/server', () => ({
},
}));
beforeAll(() => {
jest.spyOn(console, 'error').mockImplementation(() => {});
});
afterAll(() => {
(console.error as jest.Mock).mockRestore();
});
beforeEach(() => {
nodemailermock.mock.reset();
process.env.NEXT_PUBLIC_MY_EMAIL = 'test@dki.one';