zach.codes

javascript

A 2 post collection


CI Code Coverage + Tests in 5 Minutes!

by Zach Silveira •  Filed under javascript
Building open source software can be lots of fun. For some reason, it brings me way too much joy seeing code coverage and tests run on every push to github. It doesn't need to be hard to setup; I'm going to show you how to add automated testing and code...

Human Readable AJAX Requests

by Zach Silveira •  Filed under javascript
As a JavaScript developer, you must have seen code like this before: fetch('/users.json', { method: 'PATCH', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ name: 'Hubot', login: 'hubot', }), }) .then(response => response.json()) .then(json => console.log('parsed json', json)) .catch(ex => console.log('parsing failed', ex)...