mirror of
https://gh-proxy.org/https://github.com/softprops/action-gh-release.git
synced 2026-07-15 23:13:02 +08:00
f6b913c3f9
Signed-off-by: Rui Chen <rui@chenrui.dev>
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();
|
|
});
|