add status handling

This commit is contained in:
Hernan Torrisi
2024-05-23 18:56:02 -07:00
committed by hernan
parent 5c47a411f2
commit 0e0a2bd972
3 changed files with 44 additions and 11 deletions

View File

@@ -7,7 +7,12 @@ import { RiveFile } from '@rive-app/canvas';
jest.mock('@rive-app/canvas', () => ({
RiveFile: jest.fn().mockImplementation(() => ({
cleanup: jest.fn(),
on: jest.fn(),
})),
EventType: {
Load: 'load',
loadError: 'loadError',
},
}));