rive-react icon indicating copy to clipboard operation
rive-react copied to clipboard

@rive-app/react-canvas mocking error with Vitest

Open Scc33 opened this issue 1 year ago • 0 comments

Currently seeing the following error when running with Vitest.

[vitest] vi.mock(“@rive-app/react-canvas”, factory?: () => unknown) is not returning an object. Did you mean to return an object with a “default” key.

Stack:

  • Vite 5.3.3
  • Vitest 2.01
  • @rive-app/canvas 4.13.3
  • yarn 1.22.22
  • MacOS 13.6

Scc33 avatar Jul 10 '24 16:07 Scc33