Skip to content

Commit

Permalink
Add __html__ and __uiFiles__ global objects
Browse files Browse the repository at this point in the history
Again, trying to add enough so that it won't error out, but not
particularly in-depth mocks
  • Loading branch information
Blair Wilcox committed Nov 22, 2022
1 parent 476a5d4 commit b42abe6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/stubs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ export const createFigma = (paramConfig: TConfig): PluginAPI => {
const LayoutMixinStub = getLayoutMixinStub(config);
const ChildrenMixinStub = getChildrenMixinStub(config);

// @ts-ignore
global.__html__ = "main.html";

// @ts-ignore
global.__uiFiles__ = {};

applyMixins(RectangleNodeStub, [
BaseNodeMixinStub,
LayoutMixinStub,
Expand Down

0 comments on commit b42abe6

Please sign in to comment.