Skip to content

Commit

Permalink
moved jest & msw to dev dependencies and did some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Char1zardd committed Feb 19, 2022
1 parent 8efe889 commit d5b6325
Show file tree
Hide file tree
Showing 5 changed files with 2,515 additions and 876 deletions.
7 changes: 5 additions & 2 deletions Launch-Scripts/runSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const runSetup = () => {
{
cwd: dir
},
function (error, stdout) {
(error, stdout) => {
if (error) {
console.log('')
console.log('There was an error installing some dependencies error: ')
Expand Down Expand Up @@ -116,6 +116,7 @@ const runSetup = () => {
console.error(`Error downloading ${url}: HTTP response code ${response.statusCode}.`)
return false
}
console.log(response)
const writeStream = fs.createWriteStream(dest)
response.pipe(writeStream)
writeStream.on('error', () => console.error('Error writing to ' + path.resolve(dest)))
Expand Down Expand Up @@ -143,7 +144,9 @@ const runSetup = () => {
}


})
})

return 'Setup complete'
}

module.exports = {
Expand Down
3 changes: 2 additions & 1 deletion To-Dos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

### Unit Testing

* `setup.js`
* `Launch-Scripts/runSetup.js`
* `Launch-Scripts/runSetupTF.js`
* `setupPlugins.js`

# Done
Expand Down
10 changes: 10 additions & 0 deletions __tests__/Launch-Scripts/runSetup.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const {
setUpstreamAndOrigin,
runSetup
} = require('../../Launch-Scripts/runSetup')

describe('setUpstreamAndOrigin', () => {
it('should return true', async () => {
expect(true).toEqual(false)
})
})
Loading

0 comments on commit d5b6325

Please sign in to comment.