Pig Latin Application


How can I make sure if my application passes the test and works as intended?


I would just run program in node and try all the words that are listed in the //test portion of the .js file. If the words pass (ie. are translated correctly) and you dont get lint errors or a return of ‘undefined’ you should be good to go. thats how I’ve been going about it anyways


I wasn’t really right, npm run test filePath from terminal that makes more sense…

1 Like

This helped! Thanks a lot!


For future reference, the commands for each app are:

  1. To run the app

     node path/to/file.js
  2. To run the tests

     npm run test path/to/file.js
  3. To lint your code (entire repository)

     npm run lint
1 Like