From 5807a10381310e0f6362294753e79bd4782cef90 Mon Sep 17 00:00:00 2001 From: Pavel Kirilin Date: Sat, 2 Dec 2023 15:39:45 +0300 Subject: [PATCH] Fixed circular dependencies --- src/frontend/tests/mockApi/categories/index.ts | 1 - src/frontend/tests/mockApi/notes/index.ts | 1 - src/frontend/tests/mockApi/notes/notes.handlers.ts | 2 +- src/frontend/tests/mockApi/pages/index.ts | 1 - src/frontend/tests/mockApi/products/index.ts | 1 - 5 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/frontend/tests/mockApi/categories/index.ts b/src/frontend/tests/mockApi/categories/index.ts index 7e881989d..b80260fa5 100644 --- a/src/frontend/tests/mockApi/categories/index.ts +++ b/src/frontend/tests/mockApi/categories/index.ts @@ -2,7 +2,6 @@ import { db } from '../db'; import data from './categories.data.json'; export { handlers as categoriesHandlers } from './categories.handlers'; -export * as categoriesService from './categories.service'; export const fillCategories = (): void => { data.forEach(category => { diff --git a/src/frontend/tests/mockApi/notes/index.ts b/src/frontend/tests/mockApi/notes/index.ts index bdd8a9984..841f08c51 100644 --- a/src/frontend/tests/mockApi/notes/index.ts +++ b/src/frontend/tests/mockApi/notes/index.ts @@ -2,7 +2,6 @@ import { db } from '../db'; import data from './notes.data.json'; export { handlers as notesHandlers } from './notes.handlers'; -export * as notesService from './notes.service'; export const fillNotes = (): void => { data.forEach(note => { diff --git a/src/frontend/tests/mockApi/notes/notes.handlers.ts b/src/frontend/tests/mockApi/notes/notes.handlers.ts index 1cb734c81..1d6acbfe9 100644 --- a/src/frontend/tests/mockApi/notes/notes.handlers.ts +++ b/src/frontend/tests/mockApi/notes/notes.handlers.ts @@ -1,7 +1,7 @@ import { http, type HttpHandler, HttpResponse, type PathParams } from 'msw'; import { API_URL } from 'src/config'; import { type NoteCreateEdit } from 'src/features/notes'; -import { notesService } from '.'; +import * as notesService from './notes.service'; export const handlers: HttpHandler[] = [ http.get(`${API_URL}/api/v1/notes`, ({ request }) => { diff --git a/src/frontend/tests/mockApi/pages/index.ts b/src/frontend/tests/mockApi/pages/index.ts index 5538d6604..ef613db46 100644 --- a/src/frontend/tests/mockApi/pages/index.ts +++ b/src/frontend/tests/mockApi/pages/index.ts @@ -2,7 +2,6 @@ import { db } from '../db'; import data from './pages.data.json'; export { handlers as pagesHandlers } from './pages.handlers'; -export * as pagesService from './pages.service'; export const fillPages = (): void => { data.forEach(page => { diff --git a/src/frontend/tests/mockApi/products/index.ts b/src/frontend/tests/mockApi/products/index.ts index ec311483c..9eccd596e 100644 --- a/src/frontend/tests/mockApi/products/index.ts +++ b/src/frontend/tests/mockApi/products/index.ts @@ -2,7 +2,6 @@ import { db } from '../db'; import data from './products.data.json'; export { handlers as productsHandlers } from './products.handlers'; -export * as productsService from './products.service'; export const fillProducts = (): void => { data.forEach(product => {