Skip to content

Commit

Permalink
chore: unstable test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 26, 2023
1 parent 5eac588 commit 75c4fa5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/content-rich.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ async function render(content: string, options?: ContentParseOptions) {
}

// mocks
vi.mock('vue-router', () => {
vi.mock('vue-router', async () => {
const { defineComponent, h } = await import('vue')
return {
RouterLink: defineComponent((attrs) => {
return () => h('a', attrs)
Expand All @@ -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 {
default: defineComponent({
setup(props, { slots }) {
Expand All @@ -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 {
default: defineComponent({
props: ['handle', 'class'],
Expand Down

0 comments on commit 75c4fa5

Please sign in to comment.