CF-11 testing login page

This commit is contained in:
2023-10-01 10:11:39 +03:30
parent 7e768a46eb
commit 3692accbe0
8 changed files with 360 additions and 139 deletions

View File

@@ -1,5 +1,6 @@
import '@testing-library/jest-dom'
import {server} from "./mocks/server";
import mockRouter from 'next-router-mock'
require('dotenv').config({path: './.env.local'});
@@ -10,6 +11,8 @@ beforeAll(() => {
})
beforeEach(() => {
localStorage.clear();
mockRouter.query = {}
})
afterEach(() => {