mikaelvesavuori / figmagic

Figmagic is the missing piece between DevOps and design: Generate design tokens, export graphics, and extract design token-driven React components from your Figma documents.
https://docs.figmagic.com
MIT License
807 stars 71 forks source link

Mock Figma API #124

Closed mikaelvesavuori closed 2 years ago

mikaelvesavuori commented 2 years ago

Currently tests are using the actual, real Figma API. One effect of this is that a test run is therefore dependent on a realtime response, which is not always the case.

This behavior should instead use a mocked response, for example by utilizing:

The implementation should be lightweight and only, if we need new dependencies, add dev-dependencies (not user-facing).

Success criteria for this is that it is:

opauloh commented 2 years ago

Hey,

I would like to give this one a try, can I get assigned to it?

mikaelvesavuori commented 2 years ago

Sure thing! Done.