mirror of
https://github.com/softprops/action-gh-release.git
synced 2026-07-22 01:37:57 +08:00
feat: improve release error reporting and test coverage (#813)
Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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();
|
||||
});
|
||||
Reference in New Issue
Block a user