Update tests

This commit is contained in:
Zach Plata
2022-04-18 12:58:37 -07:00
committed by Zachary Plata
parent 563dca3608
commit 9398e0d74e
2 changed files with 4 additions and 4 deletions

View File

@@ -2,9 +2,9 @@ import { mocked } from 'jest-mock';
import { renderHook, act } from '@testing-library/react-hooks';
import useRive from '../src/hooks/useRive';
import * as rive from '@rive-app/webgl';
import * as rive from '@rive-app/canvas';
jest.mock('@rive-app/webgl', () => ({
jest.mock('@rive-app/canvas', () => ({
Rive: jest.fn().mockImplementation(() => ({
on: jest.fn(),
stop: jest.fn(),

View File

@@ -2,9 +2,9 @@ import { mocked } from 'jest-mock';
import { renderHook } from '@testing-library/react-hooks';
import useStateMachineInput from '../src/hooks/useStateMachineInput';
import {Rive, StateMachineInput} from '@rive-app/webgl';
import {Rive, StateMachineInput} from '@rive-app/canvas';
jest.mock('@rive-app/webgl', () => ({
jest.mock('@rive-app/canvas', () => ({
Rive: jest.fn().mockImplementation(() => ({
on: jest.fn(),
stop: jest.fn(),