Building on the previous video, this video begins by adding a pending mocha test to show how we can document a feature before we are ready to implement.

I will also show you where to find the Hapijs information which documents the Hapi plugin interface so you will know where to find details when you need them.

Then we will create our failing test for the plugin to register, and then finally we will implement the basic Hapi plugin shell to allow our plugin to register successfully.

Goals

  • Add first pending test
  • Add setup
  • Create plugin shell

Video Info

  • Episode: CW V003
  • Skill level: Beginner with basic Node.js skills
  • Prerequisites:
    • Basic Node.js & npm
    • Basic Mocha test runner knowledge
    • Basic Chai assertion library knowledge
  • Published: May 6th, 2014
  • Tags: js, nodejs,hapi,plugin,free
  • Duration: 7:54
  • Node.js version: 0.10.25
  • Git version: 1.8.2.1

Notes

In the next video

  • Create elapsed time feature test
  • Review plugin docs for ext, log
  • Implement elapsed time feature

Continue to the next video V004