Giter Club home page Giter Club logo

pww-graphql-example's Introduction

Setup steps:

  1. npm install
  2. npm run test

PWW Team,

Here's a few items that reveal how I test and develop features.

  1. Commits that start with working on mutations and validating authentication on mutations with middleware have a new feature, debugging steps memorialized, and tests validating the feature.
  2. History of graphql/bowling/bowlingGame.ts and tests/bowling/bowlingGame.test.ts shows how I iterate using the TDD process of add the simplest possible test, get it passing with the simplest possible solution, clean ugly things, repeat. i.e. red, green, refactor.
  3. History of graphql/bowling/scoreSheet.ts and tests/bowling/scoreSheet.test.ts ditto 2.
  4. graphql/bowling/bowlingAdapter.ts demonstrates a class that wraps existing bowlingGame functionality in a GraphQL compatible way without needing to change bowlingGame.

I never read a commit log sequentially. This is why intermediate commits that show steps including failing tests do not bother me. In fact, it helps remind the reader of all the steps and failures along the way, to avoid wasting time on the same errors in the future.

"git blame" explains the most recent reasons behind each line, which is often the most important information when understanding what is going on before making a change.

pww-graphql-example's People

Contributors

mikewchicago13 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.