refactor(editor): Move test files alongside tested files (no-changelog) (#11504)

This commit is contained in:
Alex Grozav 2024-11-01 18:01:13 +02:00 committed by GitHub
parent d0dce57c14
commit 63efefcd24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
132 changed files with 153 additions and 156 deletions

View file

@ -11,3 +11,7 @@
# refactor: Run lintfix (no-changelog) (#7537) # refactor: Run lintfix (no-changelog) (#7537)
62c096710fab2f7e886518abdbded34b55e93f62 62c096710fab2f7e886518abdbded34b55e93f62
# refactor: Move test files alongside tested files (#11504)
7e58fc4fec468aca0b45d5bfe6150e1af632acbc

View file

@ -1,7 +1,7 @@
import { createComponentRenderer } from '@/__tests__/render'; import { createComponentRenderer } from '@/__tests__/render';
import { createTestingPinia } from '@pinia/testing'; import { createTestingPinia } from '@pinia/testing';
import userEvent from '@testing-library/user-event'; import userEvent from '@testing-library/user-event';
import Assignment from '../Assignment.vue'; import Assignment from './Assignment.vue';
import { defaultSettings } from '@/__tests__/defaults'; import { defaultSettings } from '@/__tests__/defaults';
import { STORES } from '@/constants'; import { STORES } from '@/constants';
import { merge } from 'lodash-es'; import { merge } from 'lodash-es';

View file

@ -4,7 +4,7 @@ import { createTestingPinia } from '@pinia/testing';
import userEvent from '@testing-library/user-event'; import userEvent from '@testing-library/user-event';
import { fireEvent, within } from '@testing-library/vue'; import { fireEvent, within } from '@testing-library/vue';
import * as workflowHelpers from '@/composables/useWorkflowHelpers'; import * as workflowHelpers from '@/composables/useWorkflowHelpers';
import AssignmentCollection from '../AssignmentCollection.vue'; import AssignmentCollection from './AssignmentCollection.vue';
import { STORES } from '@/constants'; import { STORES } from '@/constants';
import { cleanupAppModals, createAppModals, SETTINGS_STORE_DEFAULT_STATE } from '@/__tests__/utils'; import { cleanupAppModals, createAppModals, SETTINGS_STORE_DEFAULT_STATE } from '@/__tests__/utils';
@ -117,7 +117,7 @@ describe('AssignmentCollection.vue', () => {
await dropAssignment({ key: 'objectKey', value: {}, dropArea }); await dropAssignment({ key: 'objectKey', value: {}, dropArea });
await dropAssignment({ key: 'arrayKey', value: [], dropArea }); await dropAssignment({ key: 'arrayKey', value: [], dropArea });
let assignments = await findAllByTestId('assignment'); const assignments = await findAllByTestId('assignment');
expect(assignments.length).toBe(5); expect(assignments.length).toBe(5);
expect(getAssignmentType(assignments[0])).toEqual('Boolean'); expect(getAssignmentType(assignments[0])).toEqual('Boolean');

View file

@ -1,7 +1,7 @@
import { createComponentRenderer } from '@/__tests__/render'; import { createComponentRenderer } from '@/__tests__/render';
import { createTestingPinia } from '@pinia/testing'; import { createTestingPinia } from '@pinia/testing';
import userEvent from '@testing-library/user-event'; import userEvent from '@testing-library/user-event';
import TypeSelect from '../TypeSelect.vue'; import TypeSelect from './TypeSelect.vue';
const DEFAULT_SETUP = { const DEFAULT_SETUP = {
pinia: createTestingPinia(), pinia: createTestingPinia(),

View file

@ -1,6 +1,6 @@
import { CompletionContext } from '@codemirror/autocomplete'; import { CompletionContext } from '@codemirror/autocomplete';
import { EditorSelection, EditorState } from '@codemirror/state'; import { EditorSelection, EditorState } from '@codemirror/state';
import { useItemFieldCompletions } from '../itemField.completions'; import { useItemFieldCompletions } from './itemField.completions';
describe('inputMethodCompletions', () => { describe('inputMethodCompletions', () => {
test('should return completions for $input.item.|', () => { test('should return completions for $input.item.|', () => {

View file

@ -1,6 +1,6 @@
import { createComponentRenderer } from '@/__tests__/render'; import { createComponentRenderer } from '@/__tests__/render';
import { createTestingPinia } from '@pinia/testing'; import { createTestingPinia } from '@pinia/testing';
import CollectionParameter from '../CollectionParameter.vue'; import CollectionParameter from './CollectionParameter.vue';
const renderComponent = createComponentRenderer(CollectionParameter, { const renderComponent = createComponentRenderer(CollectionParameter, {
pinia: createTestingPinia(), pinia: createTestingPinia(),

View file

@ -1,5 +1,5 @@
import { createComponentRenderer } from '@/__tests__/render'; import { createComponentRenderer } from '@/__tests__/render';
import CommunityPackageInstallModal from '../CommunityPackageInstallModal.vue'; import CommunityPackageInstallModal from './CommunityPackageInstallModal.vue';
import { createTestingPinia } from '@pinia/testing'; import { createTestingPinia } from '@pinia/testing';
import { COMMUNITY_PACKAGE_INSTALL_MODAL_KEY, STORES } from '@/constants'; import { COMMUNITY_PACKAGE_INSTALL_MODAL_KEY, STORES } from '@/constants';
import userEvent from '@testing-library/user-event'; import userEvent from '@testing-library/user-event';

View file

@ -7,7 +7,7 @@ import CredentialIcon from '@/components/CredentialIcon.vue';
import { createComponentRenderer } from '@/__tests__/render'; import { createComponentRenderer } from '@/__tests__/render';
import { useCredentialsStore } from '@/stores/credentials.store'; import { useCredentialsStore } from '@/stores/credentials.store';
import { useRootStore } from '@/stores/root.store'; import { useRootStore } from '@/stores/root.store';
import { useNodeTypesStore } from '../../stores/nodeTypes.store'; import { useNodeTypesStore } from '../stores/nodeTypes.store';
describe('CredentialIcon', () => { describe('CredentialIcon', () => {
const renderComponent = createComponentRenderer(CredentialIcon, { const renderComponent = createComponentRenderer(CredentialIcon, {

View file

@ -4,7 +4,7 @@ import { createTestingPinia } from '@pinia/testing';
import userEvent from '@testing-library/user-event'; import userEvent from '@testing-library/user-event';
import { fireEvent } from '@testing-library/vue'; import { fireEvent } from '@testing-library/vue';
import { createPinia, setActivePinia } from 'pinia'; import { createPinia, setActivePinia } from 'pinia';
import DropArea from '../DropArea.vue'; import DropArea from './DropArea.vue';
const renderComponent = createComponentRenderer(DropArea, { const renderComponent = createComponentRenderer(DropArea, {
pinia: createTestingPinia(), pinia: createTestingPinia(),

View file

@ -6,7 +6,7 @@ import { useNDVStore } from '@/stores/ndv.store';
import { createTestingPinia } from '@pinia/testing'; import { createTestingPinia } from '@pinia/testing';
import userEvent from '@testing-library/user-event'; import userEvent from '@testing-library/user-event';
import { within, waitFor } from '@testing-library/vue'; import { within, waitFor } from '@testing-library/vue';
import { getFilterOperator } from '../utils'; import { getFilterOperator } from './utils';
import { get } from 'lodash-es'; import { get } from 'lodash-es';
const DEFAULT_SETUP = { const DEFAULT_SETUP = {

View file

@ -1,4 +1,4 @@
import { getFilterOperator, handleOperatorChange, inferOperatorType } from '../utils'; import { getFilterOperator, handleOperatorChange, inferOperatorType } from './utils';
describe('FilterConditions > utils', () => { describe('FilterConditions > utils', () => {
describe('handleOperatorChange', () => { describe('handleOperatorChange', () => {

View file

@ -7,7 +7,7 @@ import HtmlEditor from '@/components/HtmlEditor/HtmlEditor.vue';
import { userEvent } from '@testing-library/user-event'; import { userEvent } from '@testing-library/user-event';
import { waitFor } from '@testing-library/vue'; import { waitFor } from '@testing-library/vue';
import { setActivePinia } from 'pinia'; import { setActivePinia } from 'pinia';
import { htmlEditorEventBus } from '../../event-bus'; import { htmlEditorEventBus } from '../event-bus';
const DEFAULT_SETUP = { const DEFAULT_SETUP = {
props: { props: {

View file

@ -1,6 +1,6 @@
import { renderComponent } from '@/__tests__/render'; import { renderComponent } from '@/__tests__/render';
import { createTestingPinia } from '@pinia/testing'; import { createTestingPinia } from '@pinia/testing';
import InlineExpressionEditorOutput from '../InlineExpressionEditorOutput.vue'; import InlineExpressionEditorOutput from './InlineExpressionEditorOutput.vue';
describe('InlineExpressionEditorOutput.vue', () => { describe('InlineExpressionEditorOutput.vue', () => {
test('should render duplicate segments correctly', async () => { test('should render duplicate segments correctly', async () => {

View file

@ -1,5 +1,5 @@
import { createComponentRenderer } from '@/__tests__/render'; import { createComponentRenderer } from '@/__tests__/render';
import InputTriple from '../InputTriple.vue'; import InputTriple from './InputTriple.vue';
const renderComponent = createComponentRenderer(InputTriple); const renderComponent = createComponentRenderer(InputTriple);

View file

@ -1,5 +1,5 @@
import { screen } from '@testing-library/vue'; import { screen } from '@testing-library/vue';
import CategoryItem from '../ItemTypes/CategoryItem.vue'; import CategoryItem from './ItemTypes/CategoryItem.vue';
import { createComponentRenderer } from '@/__tests__/render'; import { createComponentRenderer } from '@/__tests__/render';
const renderComponent = createComponentRenderer(CategoryItem); const renderComponent = createComponentRenderer(CategoryItem);

View file

@ -8,7 +8,7 @@ import {
mockActionCreateElement, mockActionCreateElement,
mockViewCreateElement, mockViewCreateElement,
mockSectionCreateElement, mockSectionCreateElement,
} from './utils'; } from './__tests__/utils';
import ItemsRenderer from '@/components/Node/NodeCreator/Renderers/ItemsRenderer.vue'; import ItemsRenderer from '@/components/Node/NodeCreator/Renderers/ItemsRenderer.vue';
import { createComponentRenderer } from '@/__tests__/render'; import { createComponentRenderer } from '@/__tests__/render';

View file

@ -4,8 +4,8 @@ import { createPinia } from 'pinia';
import { screen, fireEvent } from '@testing-library/vue'; import { screen, fireEvent } from '@testing-library/vue';
import type { INodeTypeDescription } from 'n8n-workflow'; import type { INodeTypeDescription } from 'n8n-workflow';
import { useNodeCreatorStore } from '@/stores/nodeCreator.store'; import { useNodeCreatorStore } from '@/stores/nodeCreator.store';
import { mockSimplifiedNodeType } from './utils'; import { mockSimplifiedNodeType } from './__tests__/utils';
import NodesListPanel from '../Panel/NodesListPanel.vue'; import NodesListPanel from './Panel/NodesListPanel.vue';
import { REGULAR_NODE_CREATOR_VIEW } from '@/constants'; import { REGULAR_NODE_CREATOR_VIEW } from '@/constants';
import type { NodeFilterType } from '@/Interface'; import type { NodeFilterType } from '@/Interface';
import { createComponentRenderer } from '@/__tests__/render'; import { createComponentRenderer } from '@/__tests__/render';

View file

@ -3,7 +3,7 @@ import { createTestingPinia } from '@pinia/testing';
import { useNodeCreatorStore } from '@/stores/nodeCreator.store'; import { useNodeCreatorStore } from '@/stores/nodeCreator.store';
import { useNodeTypesStore } from '@/stores/nodeTypes.store'; import { useNodeTypesStore } from '@/stores/nodeTypes.store';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { useActions } from '../composables/useActions'; import { useActions } from './composables/useActions';
import { import {
HTTP_REQUEST_NODE_TYPE, HTTP_REQUEST_NODE_TYPE,
MANUAL_TRIGGER_NODE_TYPE, MANUAL_TRIGGER_NODE_TYPE,

View file

@ -1,5 +1,5 @@
import { NodeConnectionType, type INodeProperties, type INodeTypeDescription } from 'n8n-workflow'; import { NodeConnectionType, type INodeProperties, type INodeTypeDescription } from 'n8n-workflow';
import { useActionsGenerator } from '../composables/useActionsGeneration'; import { useActionsGenerator } from './composables/useActionsGeneration';
describe('useActionsGenerator', () => { describe('useActionsGenerator', () => {
const { generateMergedNodesAndActions } = useActionsGenerator(); const { generateMergedNodesAndActions } = useActionsGenerator();

View file

@ -1,6 +1,6 @@
import userEvent from '@testing-library/user-event'; import userEvent from '@testing-library/user-event';
import { defineComponent, computed } from 'vue'; import { defineComponent, computed } from 'vue';
import { useKeyboardNavigation } from '../composables/useKeyboardNavigation'; import { useKeyboardNavigation } from './composables/useKeyboardNavigation';
import { createComponentRenderer } from '@/__tests__/render'; import { createComponentRenderer } from '@/__tests__/render';
import { createPinia } from 'pinia'; import { createPinia } from 'pinia';

View file

@ -1,6 +1,10 @@
import type { SectionCreateElement } from '@/Interface'; import type { SectionCreateElement } from '@/Interface';
import { formatTriggerActionName, groupItemsInSections, sortNodeCreateElements } from '../utils'; import { formatTriggerActionName, groupItemsInSections, sortNodeCreateElements } from './utils';
import { mockActionCreateElement, mockNodeCreateElement, mockSectionCreateElement } from './utils'; import {
mockActionCreateElement,
mockNodeCreateElement,
mockSectionCreateElement,
} from './__tests__/utils';
describe('NodeCreator - utils', () => { describe('NodeCreator - utils', () => {
describe('groupItemsInSections', () => { describe('groupItemsInSections', () => {

View file

@ -6,7 +6,7 @@ import { createTestingPinia } from '@pinia/testing';
import { faker } from '@faker-js/faker'; import { faker } from '@faker-js/faker';
import { waitFor } from '@testing-library/vue'; import { waitFor } from '@testing-library/vue';
import userEvent from '@testing-library/user-event'; import userEvent from '@testing-library/user-event';
import type { useNodeTypesStore } from '../../stores/nodeTypes.store'; import type { useNodeTypesStore } from '@/stores/nodeTypes.store';
import { cleanupAppModals, createAppModals } from '@/__tests__/utils'; import { cleanupAppModals, createAppModals } from '@/__tests__/utils';
let mockNdvState: Partial<ReturnType<typeof useNDVStore>>; let mockNdvState: Partial<ReturnType<typeof useNDVStore>>;

View file

@ -2,7 +2,7 @@ import {
DEFAULT_SETUP, DEFAULT_SETUP,
MAPPING_COLUMNS_RESPONSE, MAPPING_COLUMNS_RESPONSE,
UPDATED_SCHEMA, UPDATED_SCHEMA,
} from './utils/ResourceMapper.utils'; } from './__tests__/utils/ResourceMapper.utils';
import { useNodeTypesStore } from '@/stores/nodeTypes.store'; import { useNodeTypesStore } from '@/stores/nodeTypes.store';
import { cleanupAppModals, createAppModals, waitAllPromises } from '@/__tests__/utils'; import { cleanupAppModals, createAppModals, waitAllPromises } from '@/__tests__/utils';
import ResourceMapper from '@/components/ResourceMapper/ResourceMapper.vue'; import ResourceMapper from '@/components/ResourceMapper/ResourceMapper.vue';

View file

@ -1,4 +1,4 @@
import VariablesRow from '../VariablesRow.vue'; import VariablesRow from './VariablesRow.vue';
import { fireEvent } from '@testing-library/vue'; import { fireEvent } from '@testing-library/vue';
import { setupServer } from '@/__tests__/server'; import { setupServer } from '@/__tests__/server';
import { afterAll, beforeAll } from 'vitest'; import { afterAll, beforeAll } from 'vitest';

View file

@ -1,5 +1,5 @@
import { createComponentRenderer } from '@/__tests__/render'; import { createComponentRenderer } from '@/__tests__/render';
import V1Banner from '../V1Banner.vue'; import V1Banner from './V1Banner.vue';
import { createPinia, setActivePinia } from 'pinia'; import { createPinia, setActivePinia } from 'pinia';
import { useUsersStore } from '@/stores/users.store'; import { useUsersStore } from '@/stores/users.store';
import { ROLE } from '@/constants'; import { ROLE } from '@/constants';

View file

@ -1,6 +1,6 @@
import { describe, it, expect } from 'vitest'; import { describe, it, expect } from 'vitest';
import type { INode } from 'n8n-workflow'; import type { INode } from 'n8n-workflow';
import { useAIAssistantHelpers } from '../useAIAssistantHelpers'; import { useAIAssistantHelpers } from './useAIAssistantHelpers';
import { createTestingPinia } from '@pinia/testing'; import { createTestingPinia } from '@pinia/testing';
import { setActivePinia } from 'pinia'; import { setActivePinia } from 'pinia';

View file

@ -5,7 +5,7 @@ import { createTestingPinia } from '@pinia/testing';
import { waitFor } from '@testing-library/vue'; import { waitFor } from '@testing-library/vue';
import { setActivePinia } from 'pinia'; import { setActivePinia } from 'pinia';
import { beforeEach, describe, vi } from 'vitest'; import { beforeEach, describe, vi } from 'vitest';
import { useAutocompleteTelemetry } from '../useAutocompleteTelemetry'; import { useAutocompleteTelemetry } from './useAutocompleteTelemetry';
const trackSpy = vi.fn(); const trackSpy = vi.fn();
const setAutocompleteOnboardedSpy = vi.fn(); const setAutocompleteOnboardedSpy = vi.fn();

View file

@ -1,5 +1,5 @@
import { vi, describe, it, expect } from 'vitest'; import { vi, describe, it, expect } from 'vitest';
import { useDebounce } from '../useDebounce'; import { useDebounce } from './useDebounce';
import { render, screen } from '@testing-library/vue'; import { render, screen } from '@testing-library/vue';
describe('useDebounce()', () => { describe('useDebounce()', () => {

View file

@ -1,7 +1,7 @@
import { mock } from 'vitest-mock-extended'; import { mock } from 'vitest-mock-extended';
import { describe, it, expect } from 'vitest'; import { describe, it, expect } from 'vitest';
import type { FrontendSettings } from '@n8n/api-types'; import type { FrontendSettings } from '@n8n/api-types';
import { useDocumentTitle } from '../useDocumentTitle'; import { useDocumentTitle } from './useDocumentTitle';
const settings = mock<FrontendSettings>({ releaseChannel: 'stable' }); const settings = mock<FrontendSettings>({ releaseChannel: 'stable' });
vi.mock('@/stores/settings.store', () => ({ vi.mock('@/stores/settings.store', () => ({

View file

@ -6,7 +6,7 @@ import { setActivePinia } from 'pinia';
import { beforeEach, describe, vi } from 'vitest'; import { beforeEach, describe, vi } from 'vitest';
import { defineComponent, h, ref, toValue } from 'vue'; import { defineComponent, h, ref, toValue } from 'vue';
import { n8nLang } from '@/plugins/codemirror/n8nLang'; import { n8nLang } from '@/plugins/codemirror/n8nLang';
import { useExpressionEditor } from '../useExpressionEditor'; import { useExpressionEditor } from './useExpressionEditor';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { EditorSelection } from '@codemirror/state'; import { EditorSelection } from '@codemirror/state';
import userEvent from '@testing-library/user-event'; import userEvent from '@testing-library/user-event';

View file

@ -2,7 +2,7 @@ import { vi, describe, it, expect } from 'vitest';
import { MAIN_HEADER_TABS } from '@/constants'; import { MAIN_HEADER_TABS } from '@/constants';
import { render } from '@testing-library/vue'; import { render } from '@testing-library/vue';
import userEvent from '@testing-library/user-event'; import userEvent from '@testing-library/user-event';
import { useHistoryHelper } from '../useHistoryHelper'; import { useHistoryHelper } from './useHistoryHelper';
import { defineComponent, type PropType } from 'vue'; import { defineComponent, type PropType } from 'vue';
import type { RouteLocationNormalizedLoaded } from 'vue-router'; import type { RouteLocationNormalizedLoaded } from 'vue-router';
import { mock } from 'vitest-mock-extended'; import { mock } from 'vitest-mock-extended';

View file

@ -2,7 +2,7 @@ import { renderComponent } from '@/__tests__/render';
import userEvent from '@testing-library/user-event'; import userEvent from '@testing-library/user-event';
import { describe, expect, it, vi } from 'vitest'; import { describe, expect, it, vi } from 'vitest';
import { defineComponent, h, ref } from 'vue'; import { defineComponent, h, ref } from 'vue';
import { useKeybindings } from '../useKeybindings'; import { useKeybindings } from './useKeybindings';
const renderTestComponent = async (...args: Parameters<typeof useKeybindings>) => { const renderTestComponent = async (...args: Parameters<typeof useKeybindings>) => {
return renderComponent( return renderComponent(

View file

@ -1,13 +1,13 @@
import { ROLE } from '@/constants'; import { ROLE } from '@/constants';
import { useSettingsStore } from '@/stores/settings.store'; import { useSettingsStore } from '@/stores/settings.store';
import { merge } from 'lodash-es'; import { merge } from 'lodash-es';
import { usePageRedirectionHelper } from '../usePageRedirectionHelper'; import { usePageRedirectionHelper } from './usePageRedirectionHelper';
import { defaultSettings } from '@/__tests__/defaults'; import { defaultSettings } from '@/__tests__/defaults';
import { useUsersStore } from '@/stores/users.store'; import { useUsersStore } from '@/stores/users.store';
import { createPinia, setActivePinia } from 'pinia'; import { createPinia, setActivePinia } from 'pinia';
import * as cloudPlanApi from '@/api/cloudPlans'; import * as cloudPlanApi from '@/api/cloudPlans';
import { useVersionsStore } from '@/stores/versions.store'; import { useVersionsStore } from '@/stores/versions.store';
import { useTelemetry } from '../useTelemetry'; import { useTelemetry } from './useTelemetry';
let settingsStore: ReturnType<typeof useSettingsStore>; let settingsStore: ReturnType<typeof useSettingsStore>;
let usersStore: ReturnType<typeof useUsersStore>; let usersStore: ReturnType<typeof useUsersStore>;

View file

@ -14,7 +14,7 @@ import type { CompletionSource, CompletionResult } from '@codemirror/autocomplet
import { CompletionContext } from '@codemirror/autocomplete'; import { CompletionContext } from '@codemirror/autocomplete';
import { EditorState } from '@codemirror/state'; import { EditorState } from '@codemirror/state';
import { n8nLang } from '@/plugins/codemirror/n8nLang'; import { n8nLang } from '@/plugins/codemirror/n8nLang';
import { LUXON_RECOMMENDED_OPTIONS, STRING_RECOMMENDED_OPTIONS } from '../constants'; import { LUXON_RECOMMENDED_OPTIONS, STRING_RECOMMENDED_OPTIONS } from './constants';
import { uniqBy } from 'lodash-es'; import { uniqBy } from 'lodash-es';
beforeEach(async () => { beforeEach(async () => {

View file

@ -12,7 +12,7 @@ import {
natives, natives,
} from '@/plugins/codemirror/completions/datatype.completions'; } from '@/plugins/codemirror/completions/datatype.completions';
import { mockProxy } from './mock'; import { mockProxy } from './__tests__/mock';
import type { CompletionSource, CompletionResult } from '@codemirror/autocomplete'; import type { CompletionSource, CompletionResult } from '@codemirror/autocomplete';
import { CompletionContext } from '@codemirror/autocomplete'; import { CompletionContext } from '@codemirror/autocomplete';
import { EditorState } from '@codemirror/state'; import { EditorState } from '@codemirror/state';
@ -28,7 +28,7 @@ import {
METHODS_SECTION, METHODS_SECTION,
RECOMMENDED_SECTION, RECOMMENDED_SECTION,
STRING_RECOMMENDED_OPTIONS, STRING_RECOMMENDED_OPTIONS,
} from '../constants'; } from './constants';
import { set, uniqBy } from 'lodash-es'; import { set, uniqBy } from 'lodash-es';
import { mockNodes } from '@/__tests__/mocks'; import { mockNodes } from '@/__tests__/mocks';

View file

@ -1,7 +1,7 @@
import { createTestNode, createTestWorkflowObject } from '@/__tests__/mocks'; import { createTestNode, createTestWorkflowObject } from '@/__tests__/mocks';
import * as workflowHelpers from '@/composables/useWorkflowHelpers'; import * as workflowHelpers from '@/composables/useWorkflowHelpers';
import { javascriptLanguage } from '@codemirror/lang-javascript'; import { javascriptLanguage } from '@codemirror/lang-javascript';
import { autocompletableNodeNames, expressionWithFirstItem } from '../utils'; import { autocompletableNodeNames, expressionWithFirstItem } from './utils';
import type { MockInstance } from 'vitest'; import type { MockInstance } from 'vitest';
import * as ndvStore from '@/stores/ndv.store'; import * as ndvStore from '@/stores/ndv.store';
import { NodeConnectionType, type IConnections } from 'n8n-workflow'; import { NodeConnectionType, type IConnections } from 'n8n-workflow';

View file

@ -4,8 +4,8 @@ import { EditorView } from '@codemirror/view';
import { createTestingPinia } from '@pinia/testing'; import { createTestingPinia } from '@pinia/testing';
import { fireEvent } from '@testing-library/dom'; import { fireEvent } from '@testing-library/dom';
import { setActivePinia } from 'pinia'; import { setActivePinia } from 'pinia';
import { mappingDropCursor } from '../dragAndDrop'; import { mappingDropCursor } from './dragAndDrop';
import { n8nLang } from '../n8nLang'; import { n8nLang } from './n8nLang';
describe('CodeMirror drag and drop', () => { describe('CodeMirror drag and drop', () => {
beforeEach(() => { beforeEach(() => {

View file

@ -3,7 +3,7 @@ import { EditorView, getTooltip, showTooltip, type Tooltip } from '@codemirror/v
import { createTestingPinia } from '@pinia/testing'; import { createTestingPinia } from '@pinia/testing';
import { setActivePinia } from 'pinia'; import { setActivePinia } from 'pinia';
import { n8nLang } from '@/plugins/codemirror/n8nLang'; import { n8nLang } from '@/plugins/codemirror/n8nLang';
import { hoverTooltipSource, infoBoxTooltips } from '../InfoBoxTooltip'; import { hoverTooltipSource, infoBoxTooltips } from './InfoBoxTooltip';
import * as utils from '@/plugins/codemirror/completions/utils'; import * as utils from '@/plugins/codemirror/completions/utils';
import * as workflowHelpers from '@/composables/useWorkflowHelpers'; import * as workflowHelpers from '@/composables/useWorkflowHelpers';

Some files were not shown because too many files have changed in this diff Show more