diff --git a/frontend/src/components/__tests__/application_spaces/ApplicationSpaceSettings.spec.js b/frontend/src/components/__tests__/application_spaces/ApplicationSpaceSettings.spec.js index c71f76dd8..746b61eb4 100644 --- a/frontend/src/components/__tests__/application_spaces/ApplicationSpaceSettings.spec.js +++ b/frontend/src/components/__tests__/application_spaces/ApplicationSpaceSettings.spec.js @@ -1,7 +1,6 @@ import { describe, it, expect, beforeEach, vi } from 'vitest' import { mount } from '@vue/test-utils' import ApplicationSpaceSettings from '@/components/application_spaces/ApplicationSpaceSettings.vue' -import { createPinia, setActivePinia } from 'pinia' import { ElMessage } from 'element-plus' vi.mock('element-plus', () => ({ @@ -52,7 +51,6 @@ const createWrapper = (props = {}) => { ...props }, global: { - plugins: [createPinia()], mocks: { $t: (key) => key } @@ -64,7 +62,6 @@ describe('ApplicationSpaceSettings', () => { let wrapper beforeEach(() => { - setActivePinia(createPinia()) wrapper = createWrapper() }) diff --git a/frontend/src/components/__tests__/datasets/DatasetSettings.spec.js b/frontend/src/components/__tests__/datasets/DatasetSettings.spec.js index b4892d034..663dbbdee 100644 --- a/frontend/src/components/__tests__/datasets/DatasetSettings.spec.js +++ b/frontend/src/components/__tests__/datasets/DatasetSettings.spec.js @@ -1,7 +1,6 @@ import { describe, it, expect, beforeEach, vi } from "vitest"; import { mount } from "@vue/test-utils"; import DatasetSettings from "@/components/datasets/DatasetSettings.vue"; -import { createPinia, setActivePinia } from 'pinia'; // Mock the API response vi.mock('../../../packs/useFetchApi', () => ({ @@ -75,7 +74,6 @@ const createWrapper = (props = {}) => { ...props }, global: { - plugins: [createPinia()], mocks: { $t: (key) => key } @@ -84,10 +82,6 @@ const createWrapper = (props = {}) => { }; describe("DatasetSettings", () => { - beforeEach(() => { - setActivePinia(createPinia()); - }); - it("mounts correctly", () => { const wrapper = createWrapper(); expect(wrapper.vm).toBeDefined(); diff --git a/frontend/src/components/evaluations/EvaluationDetail.vue b/frontend/src/components/evaluations/EvaluationDetail.vue index cb2607b33..e8c045c28 100644 --- a/frontend/src/components/evaluations/EvaluationDetail.vue +++ b/frontend/src/components/evaluations/EvaluationDetail.vue @@ -138,7 +138,7 @@ />