fix: fix linting issues

This commit is contained in:
Alex Grozav 2023-07-26 12:23:23 +03:00
parent d8073efa94
commit 21624b7f40
39 changed files with 42 additions and 68 deletions

View file

@ -75,6 +75,7 @@ export default defineComponent({
...useHistoryHelper(useRoute()), ...useHistoryHelper(useRoute()),
...useToast(), ...useToast(),
externalHooks: useExternalHooks(), externalHooks: useExternalHooks(),
// eslint-disable-next-line @typescript-eslint/no-misused-promises
...newVersions.setup?.(props), ...newVersions.setup?.(props),
}; };
}, },

View file

@ -43,7 +43,7 @@ export default defineComponent({
}, },
onResizeEnd() { onResizeEnd() {
this.width = window.innerWidth; this.width = window.innerWidth;
this.$nextTick(async () => { void this.$nextTick(async () => {
const bannerHeight = await getBannerRowHeight(); const bannerHeight = await getBannerRowHeight();
useUIStore().updateBannersHeight(bannerHeight); useUIStore().updateBannersHeight(bannerHeight);
}); });

View file

@ -99,7 +99,7 @@ export default defineComponent({
}, },
}, },
mounted() { mounted() {
this.$nextTick(() => { void this.$nextTick(() => {
const sliderRef = this.$refs.slider as SliderRef | undefined; const sliderRef = this.$refs.slider as SliderRef | undefined;
if (!sliderRef) { if (!sliderRef) {
return; return;

View file

@ -89,7 +89,7 @@ export default defineComponent({
}, },
async mounted() { async mounted() {
this.name = await this.workflowsStore.getDuplicateCurrentWorkflowName(this.data.name); this.name = await this.workflowsStore.getDuplicateCurrentWorkflowName(this.data.name);
this.$nextTick(() => this.focusOnNameInput()); void this.$nextTick(() => this.focusOnNameInput());
}, },
computed: { computed: {
...mapStores(useCredentialsStore, useUsersStore, useSettingsStore, useWorkflowsStore), ...mapStores(useCredentialsStore, useUsersStore, useSettingsStore, useWorkflowsStore),

View file

@ -194,7 +194,7 @@ export default defineComponent({
} }
this.autoRefresh = this.uiStore.executionSidebarAutoRefresh === true; this.autoRefresh = this.uiStore.executionSidebarAutoRefresh === true;
this.startAutoRefreshInterval(); void this.startAutoRefreshInterval();
document.addEventListener('visibilitychange', this.onDocumentVisibilityChange); document.addEventListener('visibilitychange', this.onDocumentVisibilityChange);
this.loading = false; this.loading = false;
@ -453,7 +453,7 @@ export default defineComponent({
return []; return [];
} }
try { try {
return this.workflowsStore.loadCurrentWorkflowExecutions(this.requestFilter); return await this.workflowsStore.loadCurrentWorkflowExecutions(this.requestFilter);
} catch (error) { } catch (error) {
if (error.errorCode === NO_NETWORK_ERROR_CODE) { if (error.errorCode === NO_NETWORK_ERROR_CODE) {
this.showMessage( this.showMessage(

View file

@ -1,3 +0,0 @@
<template>
<slot />
</template>

View file

@ -27,7 +27,7 @@ export default defineComponent({
return; return;
} }
this.$nextTick(() => { void this.$nextTick(() => {
this.eventBus.emit('observe', this.$refs.observed); this.eventBus.emit('observe', this.$refs.observed);
}); });
}, },

View file

@ -41,7 +41,9 @@ export default defineComponent({
mixins: [pushConnection, workflowHelpers], mixins: [pushConnection, workflowHelpers],
setup(props) { setup(props) {
return { return {
// eslint-disable-next-line @typescript-eslint/no-misused-promises
...pushConnection.setup?.(props), ...pushConnection.setup?.(props),
// eslint-disable-next-line @typescript-eslint/no-misused-promises
...workflowHelpers.setup?.(props), ...workflowHelpers.setup?.(props),
}; };
}, },

View file

@ -138,6 +138,7 @@ export default defineComponent({
setup(props) { setup(props) {
return { return {
...useMessage(), ...useMessage(),
// eslint-disable-next-line @typescript-eslint/no-misused-promises
...workflowRun.setup?.(props), ...workflowRun.setup?.(props),
}; };
}, },

View file

@ -576,7 +576,7 @@ export default defineComponent({
workflow_id: this.workflowsStore.workflowId, workflow_id: this.workflowsStore.workflowId,
}); });
this.$nextTick(() => { void this.$nextTick(() => {
// Wait a tick else vue causes problems because the data is gone // Wait a tick else vue causes problems because the data is gone
this.$emit('removeNode', this.data.name); this.$emit('removeNode', this.data.name);
}); });
@ -587,7 +587,7 @@ export default defineComponent({
button_name: 'duplicate', button_name: 'duplicate',
workflow_id: this.workflowsStore.workflowId, workflow_id: this.workflowsStore.workflowId,
}); });
this.$nextTick(() => { void this.$nextTick(() => {
// Wait a tick else vue causes problems because the data is gone // Wait a tick else vue causes problems because the data is gone
this.$emit('duplicateNode', this.data.name); this.$emit('duplicateNode', this.data.name);
}); });

View file

@ -125,7 +125,7 @@ watch(
:data-keyboard-nav-id="item.uuid" :data-keyboard-nav-id="item.uuid"
@click="wrappedEmit('selected', item)" @click="wrappedEmit('selected', item)"
> >
<Fragment v-if="renderedItems.includes(item)"> <div v-if="renderedItems.includes(item)">
<label-item v-if="item.type === 'label'" :item="item" /> <label-item v-if="item.type === 'label'" :item="item" />
<subcategory-item v-if="item.type === 'subcategory'" :item="item.properties" /> <subcategory-item v-if="item.type === 'subcategory'" :item="item.properties" />
@ -148,7 +148,7 @@ watch(
:view="item.properties" :view="item.properties"
:class="$style.viewItem" :class="$style.viewItem"
/> />
</Fragment> </div>
<n8n-loading :loading="true" :rows="1" variant="p" :class="$style.itemSkeleton" v-else /> <n8n-loading :loading="true" :rows="1" variant="p" :class="$style.itemSkeleton" v-else />
</div> </div>

View file

@ -1,7 +1,7 @@
import { defineComponent, nextTick, watch } from 'vue'; import { defineComponent, nextTick, watch } from 'vue';
import type { PropType } from 'vue'; import type { PropType } from 'vue';
import { createPinia } from 'pinia'; import { createPinia } from 'pinia';
import { render, 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 './utils';

View file

@ -2,7 +2,6 @@ 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 { createTestingPinia } from '@pinia/testing';
import { createPinia } from 'pinia'; import { createPinia } from 'pinia';
const eventHookSpy = vi.fn(); const eventHookSpy = vi.fn();

View file

@ -192,6 +192,7 @@ export default defineComponent({
return { return {
...useDeviceSupport(), ...useDeviceSupport(),
...useMessage(), ...useMessage(),
// eslint-disable-next-line @typescript-eslint/no-misused-promises
...workflowActivate.setup?.(props), ...workflowActivate.setup?.(props),
}; };
}, },

View file

@ -64,6 +64,7 @@ export default defineComponent({
return { return {
...useToast(), ...useToast(),
...useMessage(), ...useMessage(),
// eslint-disable-next-line @typescript-eslint/no-misused-promises
...workflowRun.setup?.(props), ...workflowRun.setup?.(props),
}; };
}, },

View file

@ -74,7 +74,7 @@ export default defineComponent({
onEdit() { onEdit() {
this.newName = this.modelValue; this.newName = this.modelValue;
this.editName = true; this.editName = true;
this.$nextTick(() => { void this.$nextTick(() => {
const inputRef = this.$refs.input as HTMLInputElement | undefined; const inputRef = this.$refs.input as HTMLInputElement | undefined;
if (inputRef) { if (inputRef) {
inputRef.focus(); inputRef.focus();

View file

@ -991,7 +991,7 @@ export default defineComponent({
this.nodeName = this.node.name; this.nodeName = this.node.name;
} }
this.$nextTick(() => { void this.$nextTick(() => {
// @ts-ignore // @ts-ignore
if (this.$refs.inputField?.focus && this.$refs.inputField?.$el) { if (this.$refs.inputField?.focus && this.$refs.inputField?.$el) {
// @ts-ignore // @ts-ignore
@ -1162,7 +1162,7 @@ export default defineComponent({
}, },
}, },
updated() { updated() {
this.$nextTick(() => { void this.$nextTick(() => {
const remoteParameterOptions = this.$el.querySelectorAll('.remote-parameter-option'); const remoteParameterOptions = this.$el.querySelectorAll('.remote-parameter-option');
if (remoteParameterOptions.length > 0) { if (remoteParameterOptions.length > 0) {

View file

@ -378,7 +378,7 @@ export default defineComponent({
if (newDestination) { if (newDestination) {
this.headerLabel = newDestination?.label ?? this.headerLabel; this.headerLabel = newDestination?.label ?? this.headerLabel;
nextTick(() => { void nextTick(() => {
this.setupNode(newDestination); this.setupNode(newDestination);
}); });
} }

View file

@ -163,7 +163,7 @@ export default defineComponent({
}, },
methods: { methods: {
deleteNode() { deleteNode() {
this.$nextTick(() => { void this.$nextTick(() => {
// Wait a tick else vue causes problems because the data is gone // Wait a tick else vue causes problems because the data is gone
this.$emit('removeNode', this.data.name); this.$emit('removeNode', this.data.name);
}); });

View file

@ -64,7 +64,7 @@ export default defineComponent({
watch: { watch: {
dialogVisible() { dialogVisible() {
if (this.dialogVisible === true) { if (this.dialogVisible === true) {
nextTick(() => { void nextTick(() => {
(this.$refs.inputField as HTMLInputElement).focus(); (this.$refs.inputField as HTMLInputElement).focus();
}); });
} }

View file

@ -80,7 +80,7 @@ const valueValidationRules: Array<Rule | RuleGroup> = [
watch( watch(
() => modelValue.value.key, () => modelValue.value.key,
() => { () => {
nextTick(() => { void nextTick(() => {
if (formValidationStatus.value.key) { if (formValidationStatus.value.key) {
updateUsageSyntax(); updateUsageSyntax();
} }

View file

@ -65,6 +65,7 @@ export default defineComponent({
setup(props) { setup(props) {
return { return {
...useToast(), ...useToast(),
// eslint-disable-next-line @typescript-eslint/no-misused-promises
...workflowActivate.setup?.(props), ...workflowActivate.setup?.(props),
}; };
}, },

View file

@ -9,7 +9,8 @@ import { createTestingPinia } from '@pinia/testing';
import BannerStack from '@/components/banners/BannerStack.vue'; import BannerStack from '@/components/banners/BannerStack.vue';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useUsersStore } from '@/stores/users.store'; import { useUsersStore } from '@/stores/users.store';
import { createComponentRenderer, RenderOptions } from '@/__tests__/render'; import type { RenderOptions } from '@/__tests__/render';
import { createComponentRenderer } from '@/__tests__/render';
let uiStore: ReturnType<typeof useUIStore>; let uiStore: ReturnType<typeof useUIStore>;
let usersStore: ReturnType<typeof useUsersStore>; let usersStore: ReturnType<typeof useUsersStore>;

View file

@ -1,5 +1,3 @@
import { PiniaVuePlugin } from 'pinia';
import { render } from '@testing-library/vue';
import { merge } from 'lodash-es'; import { merge } from 'lodash-es';
import { SETTINGS_STORE_DEFAULT_STATE } from '@/__tests__/utils'; import { SETTINGS_STORE_DEFAULT_STATE } from '@/__tests__/utils';

View file

@ -9,7 +9,6 @@ import { createComponentRenderer } from '@/__tests__/render';
import * as telemetryModule from '@/composables/useTelemetry'; import * as telemetryModule from '@/composables/useTelemetry';
import type { Telemetry } from '@/plugins/telemetry'; import type { Telemetry } from '@/plugins/telemetry';
import { merge } from 'lodash-es'; import { merge } from 'lodash-es';
import { nextTick } from 'vue';
const defaultFilterState: ExecutionFilterType = { const defaultFilterState: ExecutionFilterType = {
status: 'all', status: 'all',

View file

@ -9,7 +9,8 @@ import type { IWorkflowDb } from '@/Interface';
import type { IExecutionsSummary } from 'n8n-workflow'; import type { IExecutionsSummary } from 'n8n-workflow';
import { retry, SETTINGS_STORE_DEFAULT_STATE, waitAllPromises } from '@/__tests__/utils'; import { retry, SETTINGS_STORE_DEFAULT_STATE, waitAllPromises } from '@/__tests__/utils';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { RenderOptions, createComponentRenderer } from '@/__tests__/render'; import type { RenderOptions } from '@/__tests__/render';
import { createComponentRenderer } from '@/__tests__/render';
let pinia: ReturnType<typeof createTestingPinia>; let pinia: ReturnType<typeof createTestingPinia>;

View file

@ -4,7 +4,6 @@ import { PERSONALIZATION_MODAL_KEY, STORES } from '@/constants';
import { retry } from '@/__tests__/utils'; import { retry } from '@/__tests__/utils';
import { createComponentRenderer } from '@/__tests__/render'; import { createComponentRenderer } from '@/__tests__/render';
import { fireEvent } from '@testing-library/vue'; import { fireEvent } from '@testing-library/vue';
import { nextTick } from 'vue';
const renderComponent = createComponentRenderer(PersonalizationModal, { const renderComponent = createComponentRenderer(PersonalizationModal, {
props: { props: {

View file

@ -1,4 +1,4 @@
import { render, within } from '@testing-library/vue'; import { within } from '@testing-library/vue';
import { import {
DEFAULT_SETUP, DEFAULT_SETUP,
MAPPING_COLUMNS_RESPONSE, MAPPING_COLUMNS_RESPONSE,

View file

@ -1,26 +1,12 @@
import { defineComponent } from 'vue';
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 { createTestingPinia } from '@pinia/testing'; import { createTestingPinia } from '@pinia/testing';
import { merge } from 'lodash-es'; import { merge } from 'lodash-es';
import RunData from '@/components/RunData.vue'; import RunData from '@/components/RunData.vue';
import { STORES, VIEWS } from '@/constants'; import { STORES, VIEWS } from '@/constants';
import { useSSOStore } from '@/stores/sso.store';
import { SETTINGS_STORE_DEFAULT_STATE } from '@/__tests__/utils'; import { SETTINGS_STORE_DEFAULT_STATE } from '@/__tests__/utils';
import { useNDVStore, useWorkflowsStore } from '@/stores';
import { createComponentRenderer } from '@/__tests__/render'; import { createComponentRenderer } from '@/__tests__/render';
let pinia: ReturnType<typeof createTestingPinia>;
let ssoStore: ReturnType<typeof useSSOStore>;
let workflowsStore: ReturnType<typeof useWorkflowsStore>;
let ndvStore: ReturnType<typeof useNDVStore>;
// const nodeHelpers = defineComponent({
// methods: {
// getNodeInputData: vi.fn().mockReturnValue(),
// },
// });
const renderComponent = createComponentRenderer(RunData, { const renderComponent = createComponentRenderer(RunData, {
props: { props: {
nodeUi: { nodeUi: {

View file

@ -1,5 +1,5 @@
import { createTestingPinia } from '@pinia/testing'; import { createTestingPinia } from '@pinia/testing';
import { render, cleanup } from '@testing-library/vue'; import { cleanup } from '@testing-library/vue';
import RunDataJsonSchema from '@/components/RunDataSchema.vue'; import RunDataJsonSchema from '@/components/RunDataSchema.vue';
import { STORES } from '@/constants'; import { STORES } from '@/constants';
import { createComponentRenderer } from '@/__tests__/render'; import { createComponentRenderer } from '@/__tests__/render';

View file

@ -5,9 +5,6 @@ import { createTestingPinia } from '@pinia/testing';
import SqlEditor from '@/components/SqlEditor/SqlEditor.vue'; import SqlEditor from '@/components/SqlEditor/SqlEditor.vue';
import { expressionManager } from '@/mixins/expressionManager'; import { expressionManager } from '@/mixins/expressionManager';
import type { TargetItem } from '@/Interface'; import type { TargetItem } from '@/Interface';
import { N8nPlugin } from 'n8n-design-system/plugin';
import { PiniaVuePlugin } from 'pinia';
import { GlobalDirectivesPlugin } from '@/plugins/directives';
import { renderComponent } from '@/__tests__/render'; import { renderComponent } from '@/__tests__/render';
const EXPRESSION_OUTPUT_TEST_ID = 'inline-expression-editor-output'; const EXPRESSION_OUTPUT_TEST_ID = 'inline-expression-editor-output';

View file

@ -394,7 +394,7 @@ export default defineComponent({
await this.initialize(); await this.initialize();
this.loading = false; this.loading = false;
this.$nextTick(this.focusSearchInput); void this.$nextTick(this.focusSearchInput);
}, },
setCurrentPage(page: number) { setCurrentPage(page: number) {
this.currentPage = page; this.currentPage = page;

View file

@ -7,14 +7,12 @@ import { ElLoading, ElMessageBox } from 'element-plus';
import { N8nPlugin } from 'n8n-design-system'; import { N8nPlugin } from 'n8n-design-system';
import { useMessage } from '@/composables/useMessage'; import { useMessage } from '@/composables/useMessage';
import EnterpriseEdition from '@/components/EnterpriseEdition.ee.vue'; import EnterpriseEdition from '@/components/EnterpriseEdition.ee.vue';
import Fragment from '@/components/Fragment.vue';
export const GlobalComponentsPlugin: Plugin<{}> = { export const GlobalComponentsPlugin: Plugin<{}> = {
install(app) { install(app) {
const messageService = useMessage(); const messageService = useMessage();
app.component('enterprise-edition', EnterpriseEdition); app.component('enterprise-edition', EnterpriseEdition);
app.component('Fragment', Fragment);
app.use(ElementPlus); app.use(ElementPlus);
app.use(N8nPlugin); app.use(N8nPlugin);

View file

@ -1,11 +1,10 @@
import { beforeAll } from 'vitest'; import { beforeAll } from 'vitest';
import { setActivePinia, createPinia } from 'pinia'; import { setActivePinia } from 'pinia';
import { merge } from 'lodash-es'; import { merge } from 'lodash-es';
import { isAuthorized, ROLE } from '@/utils'; import { isAuthorized, ROLE } from '@/utils';
import { useSettingsStore } from '@/stores/settings.store'; import { useSettingsStore } from '@/stores/settings.store';
import { useSSOStore } from '@/stores/sso.store'; import { useSSOStore } from '@/stores/sso.store';
import type { IUser } from '@/Interface'; import type { IUser } from '@/Interface';
import { VIEWS } from '@/constants';
import { SETTINGS_STORE_DEFAULT_STATE } from '@/__tests__/utils'; import { SETTINGS_STORE_DEFAULT_STATE } from '@/__tests__/utils';
import type { IN8nUISettings } from 'n8n-workflow'; import type { IN8nUISettings } from 'n8n-workflow';
import { createTestingPinia } from '@pinia/testing'; import { createTestingPinia } from '@pinia/testing';

View file

@ -354,6 +354,7 @@ export default defineComponent({
...useToast(), ...useToast(),
...useMessage(), ...useMessage(),
...useUniqueNodeName(), ...useUniqueNodeName(),
// eslint-disable-next-line @typescript-eslint/no-misused-promises
...workflowRun.setup?.(props), ...workflowRun.setup?.(props),
}; };
}, },
@ -452,7 +453,7 @@ export default defineComponent({
if (from.name === VIEWS.NEW_WORKFLOW) { if (from.name === VIEWS.NEW_WORKFLOW) {
// Replace the current route with the new workflow route // Replace the current route with the new workflow route
// before navigating to the new route when saving new workflow. // before navigating to the new route when saving new workflow.
this.$router.replace( await this.$router.replace(
{ name: VIEWS.WORKFLOW, params: { name: this.currentWorkflow } }, { name: VIEWS.WORKFLOW, params: { name: this.currentWorkflow } },
() => { () => {
// We can't use next() here since vue-router // We can't use next() here since vue-router
@ -764,7 +765,7 @@ export default defineComponent({
deepCopy(data.workflowData.nodes), deepCopy(data.workflowData.nodes),
deepCopy(data.workflowData.connections), deepCopy(data.workflowData.connections),
); );
this.$nextTick(() => { void this.$nextTick(() => {
this.canvasStore.zoomToFit(); this.canvasStore.zoomToFit();
this.uiStore.stateIsDirty = false; this.uiStore.stateIsDirty = false;
}); });
@ -835,7 +836,7 @@ export default defineComponent({
this.workflowsStore.setWorkflowPinData(data.workflow.pinData); this.workflowsStore.setWorkflowPinData(data.workflow.pinData);
} }
this.$nextTick(() => { void this.$nextTick(() => {
this.canvasStore.zoomToFit(); this.canvasStore.zoomToFit();
}); });
}, },
@ -878,7 +879,7 @@ export default defineComponent({
await this.addNodes(data.workflow.nodes, data.workflow.connections); await this.addNodes(data.workflow.nodes, data.workflow.connections);
this.workflowData = (await this.workflowsStore.getNewWorkflowData(data.name)) || {}; this.workflowData = (await this.workflowsStore.getNewWorkflowData(data.name)) || {};
this.$nextTick(() => { void this.$nextTick(() => {
this.canvasStore.zoomToFit(); this.canvasStore.zoomToFit();
this.uiStore.stateIsDirty = true; this.uiStore.stateIsDirty = true;
}); });
@ -3748,7 +3749,7 @@ export default defineComponent({
const lastAddedNode = this.nodes[this.nodes.length - 1]; const lastAddedNode = this.nodes[this.nodes.length - 1];
const previouslyAddedNode = this.nodes[this.nodes.length - 2]; const previouslyAddedNode = this.nodes[this.nodes.length - 2];
this.$nextTick(() => void this.$nextTick(() =>
this.connectTwoNodes(previouslyAddedNode.name, 0, lastAddedNode.name, 0), this.connectTwoNodes(previouslyAddedNode.name, 0, lastAddedNode.name, 0),
); );

View file

@ -76,10 +76,11 @@ export default defineComponent({
components: { components: {
CommunityPackageCard, CommunityPackageCard,
}, },
setup(props) { setup(props, ctx) {
return { return {
...useToast(), ...useToast(),
...pushConnection.setup?.(props), // eslint-disable-next-line @typescript-eslint/no-misused-promises
...pushConnection.setup?.(props, ctx),
}; };
}, },
data() { data() {

View file

@ -1,7 +1,4 @@
import { PiniaVuePlugin } from 'pinia';
import { render } from '@testing-library/vue';
import { createTestingPinia } from '@pinia/testing'; import { createTestingPinia } from '@pinia/testing';
import { merge } from 'lodash-es';
import AuthView from '@/views/AuthView.vue'; import AuthView from '@/views/AuthView.vue';
import { createComponentRenderer } from '@/__tests__/render'; import { createComponentRenderer } from '@/__tests__/render';

View file

@ -1,5 +1,3 @@
import { PiniaVuePlugin } from 'pinia';
import { render } from '@testing-library/vue';
import userEvent from '@testing-library/user-event'; import userEvent from '@testing-library/user-event';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { createTestingPinia } from '@pinia/testing'; import { createTestingPinia } from '@pinia/testing';
@ -8,7 +6,6 @@ import SamlOnboarding from '@/views/SamlOnboarding.vue';
import { useSSOStore } from '@/stores/sso.store'; import { useSSOStore } from '@/stores/sso.store';
import { STORES } from '@/constants'; import { STORES } from '@/constants';
import { SETTINGS_STORE_DEFAULT_STATE, waitAllPromises } from '@/__tests__/utils'; import { SETTINGS_STORE_DEFAULT_STATE, waitAllPromises } from '@/__tests__/utils';
import { i18nInstance } from '@/plugins/i18n';
import { createComponentRenderer } from '@/__tests__/render'; import { createComponentRenderer } from '@/__tests__/render';
vi.mock('vue-router', () => { vi.mock('vue-router', () => {

View file

@ -6,9 +6,6 @@ import { useSettingsStore } from '@/stores';
import { useUsersStore } from '@/stores/users.store'; import { useUsersStore } from '@/stores/users.store';
import { createComponentRenderer } from '@/__tests__/render'; import { createComponentRenderer } from '@/__tests__/render';
import { setupServer } from '@/__tests__/server'; import { setupServer } from '@/__tests__/server';
import { EnterpriseEditionFeature } from '@/constants';
import { UserManagementAuthenticationMethod } from '@/Interface';
import { nextTick } from 'vue';
let pinia: ReturnType<typeof createPinia>; let pinia: ReturnType<typeof createPinia>;
let settingsStore: ReturnType<typeof useSettingsStore>; let settingsStore: ReturnType<typeof useSettingsStore>;