forked from hyperledger-cacti/cacti
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(test-tooling): fix circular deps, sample-cordapp const enum export
1. This issue started out from the SampleCordappEnum problem where in some test cases it was being undefined instead of the actual string values that are defined for it's properties. 2. Suggestions on the internet said that if your enum is undefined after importing it then it's most likely a circular dependency problem. 3. So on that clue, I added a script that checks the entire project for Typescript circular dependencies and fixed one that was present in the test-tooling package (there hundreds more in other packages...) 4. Ultimately though this did not help with the original issue which was solved by simply removing the "const" modifier from the enum's declaration. This way the compiled .js sources retain the actual values defined for the enum instead of the compiler completely eliminating them. Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
- Loading branch information
Showing
4 changed files
with
424 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.