Skip to content

Commit 3159c74

Browse files
authored
Merge pull request #57 from Berghoer/play
Clean Up
2 parents 88eb170 + f813118 commit 3159c74

35 files changed

+415
-769
lines changed

src/components/Modals/ExportFileModal.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ const ExportFileModal = ({ isExportModalOpen, setIsExportModalOpen }) => {
6363

6464
const displayTestFile = (testFolderFilePath) => {
6565
const fileContent = fs.readFileSync(testFolderFilePath + `/${fileName}.test.js`, 'utf8');
66-
console.log('fileContent: ', fileContent);
6766
dispatchToGlobal(updateFile(fileContent));
6867
dispatchToGlobal(toggleFolderView(testFolderFilePath));
6968
dispatchToGlobal(highlightFile(`${fileName}.test.js`));

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)