Skip to content

Commit ebe333d

Browse files
committed
Merge branch 'master' into feature
2 parents c85e82b + 1be49bf commit ebe333d

31 files changed

+385
-742
lines changed

src/components/Modals/Modal.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const Modal = ({
5050
<pre>
5151
<div className='code-wrapper'>
5252
<code ref={codeRef}>{script}</code>
53+
<p id={styles.endpoint}>Note if you are using Create React App do not install jest</p>
5354
</div>
5455
</pre>
5556
)}

src/components/Modals/modalHooks.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@ export function useGenerateScript(test) {
4141
case 'react':
4242
return (
4343
`cd ${projectFilePath}\n` +
44-
'npm i -D jest @testing-library/jest-dom @testing-library/react test-data-bot\n' +
44+
'npm i -D @testing-library/jest-dom @testing-library/react test-data-bot jest\n' +
4545
'npm run test'
4646
);
4747
case 'redux':
4848
return (
4949
`cd ${projectFilePath}\n` +
50-
'npm i -D jest @testing-library/jest-dom @testing-library/react test-data-bot redux-mock-store redux-thunk fetch-mock node-fetch\n' +
50+
'npm i -D @testing-library/jest-dom @testing-library/react test-data-bot redux-mock-store redux-thunk fetch-mock node-fetch jest\n' +
5151
'npm run test'
5252
);
5353
case 'hooks':
5454
return (
5555
`cd ${projectFilePath}\n` +
56-
'npm i -D jest @testing-library/jest-dom @testing-library/react test-data-bot @testing-library/react-hooks\n' +
56+
'npm i -D @testing-library/jest-dom @testing-library/react test-data-bot @testing-library/react-hooks jest\n' +
5757
'npm run test'
5858
);
5959
case 'endpoint':

0 commit comments

Comments
 (0)