Testing Apollo Client/Server Applications

Following up on the GraphQL, Node.JS and React Monorepo Starter Kit and GraphQL Apollo Starter Kit (Lerna, Node.js), I have now created an extended example which includes facilities to run unit and integration tests using Jest. The code can be found on GitHub: apollo-client-server-tests The following tests are included: React Component Test This tests asserts … Continue reading Testing Apollo Client/Server Applications

GraphQL, Node.JS and React Monorepo Starter Kit

Following the GraphQL Apollo Starter Kit (Lerna, Node.js), I wanted to dig deeper into developing a monorepo for a GraphQL/React client-server application. Unfortunately, things are not as easy as I thought at first. Chiefly the create-react-app template does not appear to work very well with monorepos and local dependencies to other packages. That's why I … Continue reading GraphQL, Node.JS and React Monorepo Starter Kit

Test if Firebase is Initialized on Node.JS / Lambda

Firebase is build on the assumption that it will only be initialized once. This can be a problem in Node.JS applications sometimes, especially if they are run as part of an Amazon Lambda function. This can lead to errors as the following: Thankfully, there is an easy way to check if Firebase has already been … Continue reading Test if Firebase is Initialized on Node.JS / Lambda