mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
10 lines
253 B
TypeScript
10 lines
253 B
TypeScript
import { describe, it, expect, vi } from 'vitest'
|
|
|
|
const mockFn = vi.hoisted(() => vi.fn().mockReturnValue('mocked'))
|
|
|
|
describe('bun test vi.hoisted compatibility', () => {
|
|
it('supports vi.hoisted', () => {
|
|
expect(mockFn()).toBe('mocked')
|
|
})
|
|
})
|