forked from Mirrors/elk
chore: unstable test ci
This commit is contained in:
parent
5eac588d6d
commit
75c4fa54d7
1 changed files with 6 additions and 3 deletions
|
@ -270,7 +270,8 @@ async function render(content: string, options?: ContentParseOptions) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// mocks
|
// mocks
|
||||||
vi.mock('vue-router', () => {
|
vi.mock('vue-router', async () => {
|
||||||
|
const { defineComponent, h } = await import('vue')
|
||||||
return {
|
return {
|
||||||
RouterLink: defineComponent((attrs) => {
|
RouterLink: defineComponent((attrs) => {
|
||||||
return () => h('a', attrs)
|
return () => h('a', attrs)
|
||||||
|
@ -286,7 +287,8 @@ vi.mock('shiki-es', async (importOriginal) => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
vi.mock('~/components/content/ContentMentionGroup.vue', () => {
|
vi.mock('~/components/content/ContentMentionGroup.vue', async () => {
|
||||||
|
const { defineComponent, h } = await import('vue')
|
||||||
return {
|
return {
|
||||||
default: defineComponent({
|
default: defineComponent({
|
||||||
setup(props, { slots }) {
|
setup(props, { slots }) {
|
||||||
|
@ -296,7 +298,8 @@ vi.mock('~/components/content/ContentMentionGroup.vue', () => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
vi.mock('~/components/account/AccountHoverWrapper.vue', () => {
|
vi.mock('~/components/account/AccountHoverWrapper.vue', async () => {
|
||||||
|
const { defineComponent } = await import('vue')
|
||||||
return {
|
return {
|
||||||
default: defineComponent({
|
default: defineComponent({
|
||||||
props: ['handle', 'class'],
|
props: ['handle', 'class'],
|
||||||
|
|
Loading…
Reference in a new issue