As developer of the Nutrition Information API, I want to use TypeScript, so I get:
To play around with TypeScript
Class and Module Support
Static Type-checking
ES6 Feature Support
Syntax Similarity to C# and Java
Superset of JavaScript
Acceptance Criteria
Do not lose any current functionality, i.e. after moving to TypeScript, the following stories should not regress:
5 As a contributor to the Nutrition Information API, I want continuous integration to automatically build, unit test, and integration test each commit for a pull request, so I can detect errors early through automation.
14 As a contributor to the Nutrition Information API, I want continuous integration to automatically check ~100% code coverage for unit tests of a pull request, so I can automatically assert there have been automated unit tests written for all of the new code.
Test Plan
Test #14 by following the same test steps but locally, i.e. running npm test and checking the result of the command. Then test #5 by confirming the Travis CI check is performed on the Pull Request.
Development Work
Change to typescript by doing the following:
Add dev dependency typescript 2.X
Add dev dependency ts-node
Must be less than 1.3.0 and create an issue to update the ts-node version once the following is resolved:
As developer of the Nutrition Information API, I want to use TypeScript, so I get:
Acceptance Criteria Do not lose any current functionality, i.e. after moving to TypeScript, the following stories should not regress:
5 As a contributor to the Nutrition Information API, I want continuous integration to automatically build, unit test, and integration test each commit for a pull request, so I can detect errors early through automation.
14 As a contributor to the Nutrition Information API, I want continuous integration to automatically check ~100% code coverage for unit tests of a pull request, so I can automatically assert there have been automated unit tests written for all of the new code.
Test Plan Test #14 by following the same test steps but locally, i.e. running npm test and checking the result of the command. Then test #5 by confirming the Travis CI check is performed on the Pull Request.
Development Work Change to typescript by doing the following:
Definition of Ready