feat: Add hardened error handling and retries (#2451)

- Closes #1830
 - Closes #2099
This commit is contained in:
Dermot Duffy
2026-06-30 17:45:12 -07:00
committed by dermotduffy
parent 4bc787e2b7
commit 47bcce93d3
182 changed files with 7877 additions and 4043 deletions
@@ -68,12 +68,14 @@ describe('ActionsManager', () => {
vi.restoreAllMocks();
});
it('should get no merged actions with a message', () => {
it('should get no merged actions with an issue', () => {
const api = createCardAPI();
vi.mocked(api.getViewManager().getView).mockReturnValue(
createView({ view: 'live' }),
);
vi.mocked(api.getMessageManager().hasMessage).mockReturnValue(true);
vi.mocked(
api.getIssueManager().getStateManager().hasFullCardIssue,
).mockReturnValue(true);
const manager = new ActionsManager(api);
@@ -49,7 +49,7 @@ import { ActionConfig } from '../../../src/config/schema/actions/types';
// @vitest-environment jsdom
describe('ActionFactory', () => {
it('mismatched card-id', () => {
it('should return null for mismatched card-id', () => {
const factory = new ActionFactory();
expect(
factory.createAction(
@@ -130,7 +130,7 @@ describe('ActionFactory', () => {
[
{
advanced_camera_card_action: 'notification' as const,
notification: { text: 'test' },
notification: { body: { text: 'test' } },
},
NotificationAction,
],