0.0.0-alpha.9 • Published 4 years ago
@figlets/helpers v0.0.0-alpha.9
Figlets Helpers
A collection of helpers for Figma plugins.
Usage
Install using the following
npm install @figlets/helpersInclude in your main code
import { ungroup } from '@figlets/helpers'Testing
For each helper create a unit test by making a file with the same name as the helper in the __tests__ directory. Use Jest's built-in test() function to create a test.
// __tests__/ungroup.test.ts
import { ungroup } from './src/helpers/ungroup';
test('Describe your test', () => {
});Unit tests use a global Figma API stub and can just be referenced as normal
// __tests__/createRectangle.test.ts
var rect = figma.createRectangle()Follow the Jest Docs for more guidance on writing tests.
Finally to see if your test passes, run:
npm run testPublishing
Install np for publishing.
npm install --global npPublish by running np
np0.0.0-alpha.9
4 years ago
0.0.0-alpha.7
4 years ago
0.0.0-alpha.8
4 years ago
0.0.0-alpha.6
5 years ago
0.0.0-alpha.5
5 years ago
0.0.0-alpha.4
5 years ago
0.0.0-alpha.3
5 years ago
0.0.0-alpha.2
5 years ago
0.0.0-alpha.1
5 years ago
0.0.0-alpha.0
5 years ago