diff --git a/server/apps/frontend/.eslintrc.json b/server/apps/frontend/.eslintrc.json
index 369df15a..d4cfdda8 100644
--- a/server/apps/frontend/.eslintrc.json
+++ b/server/apps/frontend/.eslintrc.json
@@ -61,7 +61,7 @@
"import/no-extraneous-dependencies": [
"error",
{
- "devDependencies": ["src/**/*.spec.ts", "src/mocks/**/*.ts", "*.config.ts"]
+ "devDependencies": ["src/**/*.spec.ts?(x)", "src/mocks/**/*.ts", "*.config.ts"]
}
],
"react/function-component-definition": [
diff --git a/server/apps/frontend/package.json b/server/apps/frontend/package.json
index 1eb9ed37..d75f674b 100644
--- a/server/apps/frontend/package.json
+++ b/server/apps/frontend/package.json
@@ -65,9 +65,8 @@
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-react-hooks": "4.6.0",
+ "jsdom": "21.1.0",
"react-test-renderer": "18.2.0",
- "start-server-and-test": "^1.15.3",
- "ts-jest": "29.0.5",
"typescript": "4.9.5",
"vite": "4.1.1",
"vitest": "0.28.4"
diff --git a/server/apps/frontend/src/Seller/SellerForm/SellerForm.spec.tsx b/server/apps/frontend/src/Seller/SellerForm/SellerForm.spec.tsx
index 2cfc0821..5ccad321 100644
--- a/server/apps/frontend/src/Seller/SellerForm/SellerForm.spec.tsx
+++ b/server/apps/frontend/src/Seller/SellerForm/SellerForm.spec.tsx
@@ -1,9 +1,10 @@
-import { useRef } from 'react';
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
-import { it, describe, test, expect, vi } from 'vitest';
+import { useRef } from 'react';
+import { describe, expect, it, test, vi } from 'vitest';
import { SellerForm } from './SellerForm';
+
vi.mock('react', () => {
const mUseRef = vi.fn();
return {
diff --git a/server/apps/frontend/src/Seller/SellerForm/SellerForm.tsx b/server/apps/frontend/src/Seller/SellerForm/SellerForm.tsx
index 50b071f4..bfb2e95a 100644
--- a/server/apps/frontend/src/Seller/SellerForm/SellerForm.tsx
+++ b/server/apps/frontend/src/Seller/SellerForm/SellerForm.tsx
@@ -74,7 +74,7 @@ export const SellerForm = ({