Profile cover photo
Profile photo
bguiz.com
7 followers
7 followers
About
bguiz.com's posts

Post has attachment
Testing enlightenment
#woke #dry #damp #snapshots
Photo

Post has attachment
How to mock chained APIs in #jest:
#testing #javascript #blog

A chained API is one which returns the original object, rather than the result of the operation, from each function call. An object which exposes a chained API is great for both its implementor, and its consumer… but not so great for someone who wishes to mock it for testing purposes.

In this post, we will explore how to use a chained API (from jest) to test another chained API (from express), by splitting mock definitions from mock implementations.

Post has attachment
Many-to-many relationships in #PostgreSql without using junction tables? Sure!
#sql #database #blog

Many to many relationships are usually quite expensive in relational databases. PostgreSql supports some additional complex data types as well. The ones that are of particular interest are Array, JSONB array, JSONB object, and hstore. These complex data types can be utilised creatively to avoid multiple joins. We'll define the schema and queries for specifying many-to-many relationships using junction tables, and each of these complex data types.

Post has attachment
Large #project pre-planning:
#agile #trello #blog

Post has attachment

Post has attachment
Photo

Post has attachment

Post has attachment
At 6-ish this evening: Publish Websites with #ReactJs
http://buff.ly/21oCuez #isomorphic #js #nodejs #talk static site generation

Post has attachment

Post has attachment
Front-end #Javascript - how to unit test and integration test it with #NodeJs tools
Wait while more posts are being loaded