Skip to content
Snippets Groups Projects
Commit 18934410 authored by heikkkk's avatar heikkkk
Browse files

refactor: remove 'Component' from folder name

parent 6a49cb92
No related branches found
No related tags found
1 merge request!76Refactor/folder structure
This commit is part of merge request !76. Comments created here will be created in the context of that merge request.
...@@ -2,9 +2,9 @@ import { describe, it, expect, beforeEach, vi } from 'vitest'; ...@@ -2,9 +2,9 @@ import { describe, it, expect, beforeEach, vi } from 'vitest';
import { mount } from '@vue/test-utils'; import { mount } from '@vue/test-utils';
import { createRouter, createMemoryHistory } from 'vue-router'; import { createRouter, createMemoryHistory } from 'vue-router';
import { createPinia, setActivePinia } from 'pinia'; import { createPinia, setActivePinia } from 'pinia';
import Leaderboard from '@/components/LeaderboardComponents/Leaderboard.vue'; import Leaderboard from '../Leaderboard.vue';
import { useUserInfoStore } from '@/stores/UserStore'; import { useUserInfoStore } from '../../../stores/UserStore';
import router from '@/router/index'; import router from '../../../router';
describe('Leaderboard', () => { describe('Leaderboard', () => {
......
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
import { mount } from '@vue/test-utils'; import { mount } from '@vue/test-utils';
import MyComponent from '@/components/NewsComponents/NewsComponent.vue'; // Adjust the import path according to your setup import MyComponent from '../NewsComponent.vue'; // Adjust the import path according to your setup
global.fetch = vi.fn(() => global.fetch = vi.fn(() =>
Promise.resolve( Promise.resolve(
......
<script lang="ts"> <script lang="ts">
import SavingGoalList from "@/components/SavingGoalComponents/SavingGoalList.vue"; import SavingGoalList from "@/components/SavingGoal/SavingGoalList.vue";
import SavingGoalRoadmap from "@/components/SavingGoalComponents/SavingGoalRoadmap.vue"; import SavingGoalRoadmap from "@/components/SavingGoal/SavingGoalRoadmap.vue";
import SavingGoalCreate from "@/components/SavingGoalComponents/SavingGoalCreate.vue"; import SavingGoalCreate from "@/components/SavingGoal/SavingGoalCreate.vue";
import type {GoalDTO} from "@/api"; import type {GoalDTO} from "@/api";
import {GoalService} from "@/api"; import {GoalService} from "@/api";
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { onMounted, ref } from 'vue'; import { onMounted, ref } from 'vue';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import Leaderboard from '@/components/LeaderboardComponents/Leaderboard.vue'; import Leaderboard from '@/components/Leaderboard/Leaderboard.vue';
import { LeaderboardService } from '@/api'; import { LeaderboardService } from '@/api';
let streakLeaderboardData = ref([] as any); let streakLeaderboardData = ref([] as any);
......
<script setup lang="ts"> <script setup lang="ts">
import NewsComponent from "@/components/NewsComponents/NewsComponent.vue"; import NewsComponent from "@/components/News/NewsComponent.vue";
</script> </script>
......
<script setup lang="ts"> <script setup lang="ts">
import SavingGoal from "@/components/SavingGoalComponents/SavingGoal.vue"; import SavingGoal from "@/components/SavingGoal/SavingGoal.vue";
</script> </script>
<template> <template>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment