✨ fix: remove unnecessary test assertions and improve act usage
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user