Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Scc33 opened this issue Jul 10, 2024 · 0 comments
Open

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

Scc33 opened this issue Jul 10, 2024 · 0 comments

Comments

@Scc33
Copy link

Scc33 commented Jul 10, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant