Fix failing tests

This commit is contained in:
Lance
2025-04-28 13:48:02 -06:00
committed by Lance Snider
parent 8213c6ed7e
commit f2a6860292
2 changed files with 3 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ jest.mock('@rive-app/canvas', () => ({
Rive: jest.fn().mockImplementation(() => ({
on: jest.fn(),
stop: jest.fn(),
cleanup: jest.fn(),
})),
Layout: jest.fn(),
Fit: {

View File

@@ -38,6 +38,8 @@ describe('useRive', () => {
stop: jest.fn(),
stopRendering: jest.fn(),
startRendering: jest.fn(),
cleanup: jest.fn(),
resizeToCanvas: jest.fn(),
};
});