🎁 Unwrapping the Second festive release for 2024: Unit testing with the Canva Apps SDK!

Jingle bells, jingle bells, jingle all the way
Oh what fun it is to write a unit test today…

We’re excited to announce that unit testing with the Canva Apps SDK is now simple and straightforward!

The Canva Apps SDK is awesome because it puts the power of the Canva editor in your app, but less awesome outside the editor - the APIs have nothing to call and things break. We have now made it possible to run apps in a test environment while calling our APIs! That means you can mock and spy on them in unit tests. We’ve sprinkled some starter magic in our templates for you to play with and expand - the sky’s the limit!

expect(isMerryChristmas).toBe(true);

Instructions:

There will be more developer :wrapped_gift: presents :wrapped_gift: every day this week, stay tuned for the next drop!

7 Likes