Skip to content

Commit

Permalink
added jest dependencu
Browse files Browse the repository at this point in the history
  • Loading branch information
thuyanduong committed Jan 10, 2021
1 parent 63bec4d commit 21b8a8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Respond to short response questions in clear, concise sentences directly within
**3. What are the benefits of writing functions recursively? What are the drawbacks?**

### Coding Exercises
Answer the following questions in `exercises.py` or `exercises.js`. Run unit test with the `pytest` command for Python, or `yarn test` for JS. Ensure all tests are passing before submitting this problem set.
Answer the following questions in `exercises.py` or `exercises.js`. Run unit test with the `pytest` command for Python, or `npm test` for JS. Ensure all tests are passing before submitting this problem set.

1. **_Reverse a String:_** This interview question requires you to reverse a string using recursion. Make sure to think of the base case here and make sure you use recursion to accomplish this! Do not slice (e.g. string[::-1]) or use iteration, there must be a recursive call for the function.

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "## Directions Respond to short response questions in clear, concise sentences directly within this file. Use markdown to ensure that your answers are formatted correctly.",
"main": "exercises.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "jest"
},
"repository": {
"type": "git",
Expand All @@ -16,7 +16,7 @@
"url": "https://github.com/The-Marcy-Lab-School/problem-set-11_4/issues"
},
"homepage": "https://github.com/The-Marcy-Lab-School/problem-set-11_4#readme",
"scripts": {
"test": "jest"
"dependencies": {
"jest": "^26.6.3"
}
}

0 comments on commit 21b8a8e

Please sign in to comment.