mirror of
https://github.com/softprops/action-gh-release.git
synced 2026-07-22 01:37:57 +08:00
12 lines
278 B
TypeScript
12 lines
278 B
TypeScript
|
|
import { expect, it, vi } from 'vitest';
|
||
|
|
|
||
|
|
const run = vi.hoisted(() => vi.fn().mockResolvedValue(undefined));
|
||
|
|
|
||
|
|
vi.mock('../src/run', () => ({ run }));
|
||
|
|
|
||
|
|
it('starts the action orchestration', async () => {
|
||
|
|
await import('../src/main');
|
||
|
|
|
||
|
|
expect(run).toHaveBeenCalledOnce();
|
||
|
|
});
|