fix tests

This commit is contained in:
Henry Jameson 2026-06-04 23:22:31 +03:00
commit b37b75c473
6 changed files with 34 additions and 30 deletions

View file

@ -2,7 +2,12 @@ import { config } from '@vue/test-utils'
import { createMemoryHistory, createRouter } from 'vue-router'
import VueVirtualScroller from 'vue-virtual-scroller'
import RichContent from 'src/components/rich_content/rich_content.jsx'
import Status from 'src/components/status/status.vue'
import StillImage from 'src/components/still-image/still-image.vue'
import makeMockStore from './mock_store'
import { createTestingPinia } from '@pinia/testing'
import routes from 'src/boot/routes'
@ -37,8 +42,13 @@ const getDefaultOpts = ({
(Vue) => {
Vue.directive('body-scroll-lock', {})
},
createTestingPinia(),
],
components: {},
components: {
RichContent,
Status,
StillImage,
},
stubs: {
I18nT: true,
teleport: true,

View file

@ -65,7 +65,7 @@ describe('Draft saving', () => {
},
)
it('should auto-save if it is enabled', async function () {
it.only('should auto-save if it is enabled', async function () {
vi.useFakeTimers()
const wrapper = mount(PostStatusForm, mountOpts())
const store = useMergedConfigStore()