Improve readability to make it easier for readers to use tests to understand the generator code / use the tests as specifications
I created constants to use as array indices so that the intent is explicit.
Fix TypeScript problems: Added, defined types where needed.
In order to use ejs Data type for templates, had to explicitly include @types/ejs and ejs in the package.
GeneratorOptions requires help: be included; added it to a new Generator.... call where it was missing
I had to add a @ts-expect-error comment for a line where esmocha.spyOn(...) is used. I referenced the known GitHub issue. I added a comment noting that the spyOn could be replaced with a sinonStub(), since the result of the spy is never checked.
I did not squash my commits. I thought it might be helpful to see exactly what changes I made.
addresses #1481
Improve readability to make it easier for readers to use tests to understand the generator code / use the tests as specifications
Fix TypeScript problems: Added, defined types where needed.
Data
type for templates, had to explicitly include@types/ejs
andejs
in the package.GeneratorOptions
requireshelp:
be included; added it to a new Generator.... call where it was missing@ts-expect-error
comment for a line whereesmocha.spyOn(...)
is used. I referenced the known GitHub issue. I added a comment noting that the spyOn could be replaced with a sinonStub(), since the result of the spy is never checked.I did not squash my commits. I thought it might be helpful to see exactly what changes I made.