Create all of your feature code files in the src
directory. Use the module.exports
and require
syntax to share code across files.
Once you are working through Iteration 3, you will want to run the node index.js
command in your terminal to run the game.
When the game is functioning appropriately, you will be prompted for each question, have the opportunity to select an answer, and will be given feedback. You will be able to play through the entire deck of cards:
Similar to feature code, your test code needs to be put in a specific place for it to run successfully.
Put all of your test files in the test
directory. As a convention, all test filenames should end with -test.js
. For instance: card-test.js
.
Run your test suite using the command:
npm test