Skip to content

Commit 1be49bf

Browse files
committed
2 parents 7849e11 + 11500f5 commit 1be49bf

34 files changed

+415
-768
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\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':

src/components/NavBar/NavBar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const homeIcon = require('../../assets/images/home.png');
2626

2727
const NavBar = () => {
2828
const [
29-
{ fileTree, isFileDirectoryOpen, url, projectUrl, rightPanelDisplay },
29+
{ fileTree, isFileDirectoryOpen, projectUrl, rightPanelDisplay },
3030
dispatchToGlobal,
3131
] = useContext(GlobalContext);
3232
const [isExportModalOpen, setIsExportModalOpen] = useState(false);

0 commit comments

Comments
 (0)