Testing React components with Plasmic

Hi, I have some custom react components for Plasmic and I want to write some tests including tests how something is rendered in a plasmic context for example. Any ideas how to do that?

Hi, you can write normal end-to-end tests using something like Cypress or playwright against your plasmic generated components.

But to test them as they would behave in a plasmic canvas context, you can provide this context: https://github.com/plasmicapp/plasmic/blob/master/packages/host/src/canvas-host.tsx