fix tests
This commit is contained in:
parent
745981e25f
commit
b37b75c473
6 changed files with 34 additions and 30 deletions
12
test/fixtures/setup_test.js
vendored
12
test/fixtures/setup_test.js
vendored
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue