Commit 662faab0 authored by Eulyeon Ko's avatar Eulyeon Ko

Use shallow mount to make the spec more scalable

parent e1c35852
import Vuex from 'vuex';
import { mount, createLocalVue } from '@vue/test-utils';
import { shallowMount, createLocalVue } from '@vue/test-utils';
import RoadmapShell from 'ee/roadmap/components/roadmap_shell.vue';
import RoadmapTimelineSection from 'ee/roadmap/components/roadmap_timeline_section.vue';
import MilestonesListSection from 'ee/roadmap/components/milestones_list_section.vue';
import EpicsListSection from 'ee/roadmap/components/epics_list_section.vue';
import MonthsHeaderItem from 'ee/roadmap/components/preset_months/months_header_item.vue';
import MonthsHeaderSubItem from 'ee/roadmap/components/preset_months/months_header_sub_item.vue';
import { PRESET_TYPES } from 'ee/roadmap/constants';
import eventHub from 'ee/roadmap/event_hub';
import createStore from 'ee/roadmap/store';
......@@ -41,7 +46,7 @@ describe('RoadmapShell', () => {
},
el,
) => {
wrapper = mount(RoadmapShell, {
wrapper = shallowMount(RoadmapShell, {
localVue,
store,
attachTo: el,
......@@ -53,6 +58,13 @@ describe('RoadmapShell', () => {
currentGroupId,
hasFiltersApplied,
},
stubs: {
RoadmapTimelineSection,
MilestonesListSection,
EpicsListSection,
MonthsHeaderItem,
MonthsHeaderSubItem,
},
});
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment