-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hi there,
Thanks for providing this package, it makes developing After Effects libraries with TypeScript much easier :)
Unfortunately I get an error when importing the package inside Jest unit tests:
ReferenceError: Cannot access 'thisLayer' before initialization
Having a look at your code I saw that you define thisLayer after the declaration of the Layer class, but thisLayer is also used to set the parent of a layer in the Layer constructor (line 851 in index.js). This seems to cause the error.
I am using your template create-expression-lib where Jest unit tests are included. In the index.test.ts file you are mocking this package, but from the docs this should not be necessary: https://github.com/motiondeveloper/create-expression-lib#testing
Metadata
Metadata
Assignees
Labels
No labels