0.0.0-alpha.9 • Published 3 years ago

@figlets/helpers v0.0.0-alpha.9

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Figlets Helpers

A collection of helpers for Figma plugins.

Usage

Install using the following

npm install @figlets/helpers

Include 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 test

Publishing

Install np for publishing.

npm install --global np

Publish by running np

np
0.0.0-alpha.9

3 years ago

0.0.0-alpha.7

3 years ago

0.0.0-alpha.8

3 years ago

0.0.0-alpha.6

3 years ago

0.0.0-alpha.5

3 years ago

0.0.0-alpha.4

3 years ago

0.0.0-alpha.3

3 years ago

0.0.0-alpha.2

3 years ago

0.0.0-alpha.1

3 years ago

0.0.0-alpha.0

3 years ago