refactor(editor): Delete some barrel files and reduce circular dependencies (no-changelog) (#7838)
This commit is contained in:
committed by
GitHub
parent
3ab3ec9da8
commit
753cbc1e96
@@ -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;
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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(),
|
||||
}));
|
||||
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user