refactor(editor): Delete some barrel files and reduce circular dependencies (no-changelog) (#7838)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-11-28 12:15:08 +01:00
committed by GitHub
parent 3ab3ec9da8
commit 753cbc1e96
229 changed files with 539 additions and 507 deletions

View File

@@ -4,7 +4,7 @@ import { setupServer } from '@/__tests__/server';
import { useEnvironmentsStore } from '@/stores/environments.ee.store';
import type { EnvironmentVariable } from '@/Interface';
describe('store', () => {
describe('environments.store', () => {
let server: ReturnType<typeof setupServer>;
const seedRecordsCount = 3;

View File

@@ -1,6 +1,7 @@
import { createPinia, setActivePinia } from 'pinia';
import { useUIStore } from '@/stores/ui.store';
import { useSettingsStore, useUsersStore } from '@/stores/settings.store';
import { useSettingsStore } from '@/stores/settings.store';
import { useUsersStore } from '@/stores/users.store';
import { merge } from 'lodash-es';
import { SETTINGS_STORE_DEFAULT_STATE } from '@/__tests__/utils';
import { useRootStore } from '@/stores/n8nRoot.store';

View File

@@ -1,10 +1,10 @@
import { setActivePinia, createPinia } from 'pinia';
import { useWorkflowsStore } from '@/stores/workflows.store';
import type { IWorkflowDataUpdate } from '@/Interface';
import { makeRestApiRequest } from '@/utils';
import { makeRestApiRequest } from '@/utils/apiUtils';
import { useRootStore } from '../n8nRoot.store';
vi.mock('@/utils', () => ({
vi.mock('@/utils/apiUtils', () => ({
makeRestApiRequest: vi.fn(),
}));

View File

@@ -1,5 +1,5 @@
import { createTestingPinia } from '@pinia/testing';
import { useWorkflowsStore } from '@/stores';
import { useWorkflowsStore } from '@/stores/workflows.store';
let pinia: ReturnType<typeof createTestingPinia>;
beforeAll(() => {