From 5b2b5d5d5060df4c2ca0b28fdfd32809b06822e5 Mon Sep 17 00:00:00 2001 From: ashwallsinfinity <43000064+ashwallsinfinity@users.noreply.github.com> Date: Sat, 9 Feb 2019 21:10:22 +0000 Subject: [PATCH 1/3] Fix error running enzyme tests I had trouble running the tests after installing the enzyme development-time dependencies. After adding react-scripts-ts@4.0.8 to the development-time dependencies it seemed to fix the issue. :) --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 0793532..650ccd7 100644 --- a/README.md +++ b/README.md @@ -436,6 +436,14 @@ it('throws when the enthusiasm level is negative', () => { These tests are extremely basic, but you should be able to get the gist of things. +Notice: + +If you find yourself getting an error when trying to run ```sh npm run test``` after installing enzyme make sure react-script-ts is installed in your package.json file under "devDependencies". If not, this can be installed as a development-time dependency using the follow command: + +```sh +npm install react-scripts-ts@4.0.8 +``` + # Adding state management At this point, if all you're using React for is fetching data once and displaying it, you can consider yourself done. From 2a165a69c5de4898024bc033966f62c8f683ed0b Mon Sep 17 00:00:00 2001 From: ashwallsinfinity <43000064+ashwallsinfinity@users.noreply.github.com> Date: Sat, 9 Feb 2019 21:18:11 +0000 Subject: [PATCH 2/3] Fix typo on enzyme test fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 650ccd7..7f6ddbd 100644 --- a/README.md +++ b/README.md @@ -438,7 +438,7 @@ These tests are extremely basic, but you should be able to get the gist of thing Notice: -If you find yourself getting an error when trying to run ```sh npm run test``` after installing enzyme make sure react-script-ts is installed in your package.json file under "devDependencies". If not, this can be installed as a development-time dependency using the follow command: +If you find yourself getting an error when trying to run ```npm run test``` after installing enzyme make sure react-script-ts is installed in your package.json file under "devDependencies". If not, this can be installed as a development-time dependency using the follow command: ```sh npm install react-scripts-ts@4.0.8 From 8b0655e136a36a93588d446b7f2de195b25ee4ea Mon Sep 17 00:00:00 2001 From: ashwallsinfinity <43000064+ashwallsinfinity@users.noreply.github.com> Date: Sat, 9 Feb 2019 21:19:48 +0000 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7f6ddbd..e6b3b7b 100644 --- a/README.md +++ b/README.md @@ -441,7 +441,7 @@ Notice: If you find yourself getting an error when trying to run ```npm run test``` after installing enzyme make sure react-script-ts is installed in your package.json file under "devDependencies". If not, this can be installed as a development-time dependency using the follow command: ```sh -npm install react-scripts-ts@4.0.8 +npm install -D react-scripts-ts@4.0.8 ``` # Adding state management