Is there a way to unit test plugins ?
I tried Jest, but I get errors like these:
β Test suite failed to run
Cannot find module 'viewport' from 'main.js'
However, Jest was able to find:
'./main.js'
'./main.test.js'
You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['js', 'json', 'jsx', 'ts', 'tsx', 'node'].
See https://jestjs.io/docs/en/configuration#modulefileextensions-array-string
4 |
> 6 | const viewport = require("viewport");
Is there a way to import xd modules like viewport, scenegraph, application etc ?