Pig Latin Application

javascript
#1

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

#2

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

#3

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

1 Like
#4

This helped! Thanks a lot!

#5

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