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
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:
Having a look at your code I saw that you define
thisLayerafter the declaration of theLayerclass, butthisLayeris also used to set the parent of a layer in theLayerconstructor (line 851 in index.js). This seems to cause the error.I am using your template
create-expression-libwhere Jest unit tests are included. In theindex.test.tsfile you are mocking this package, but from the docs this should not be necessary: https://github.com/motiondeveloper/create-expression-lib#testing