Skip to content

Commit

Permalink
chore: mocked circular default test
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Dec 26, 2022
1 parent f43e8aa commit 045eb57
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/core/src/circularDefaultA.ts
@@ -0,0 +1,5 @@
import circularB from './circularDefaultB'

export default function circularA() {
return circularB()
}
5 changes: 5 additions & 0 deletions test/core/src/circularDefaultB.ts
@@ -0,0 +1,5 @@
import circularA from './circularDefaultA'

export default function circularB() {
circularA()
}
10 changes: 10 additions & 0 deletions test/core/test/mocked-default-circular.test.ts
@@ -0,0 +1,10 @@
import { expect, it, vi } from 'vitest'
import circularA from '../src/circularDefaultA'

vi.mock('../src/circularDefaultB')

it('circular', () => {
circularA()

expect(1).toBe(1)
})

0 comments on commit 045eb57

Please sign in to comment.