- BDD Assertion library - Sinon - Spies and Mocks - Faker - generate fake data - GH mochajs.org chaijs.org sinonjs.org Marak/Faker.js These are the tools I use and can talk about, tools can change, patterns remain the same...
two master methods to boot for e2e and unit. e2e practically boots up your Node.js App. Unit boot prepares anything you need to have ready. Contains any commonly used helpers.
your test cases in a single "describe" statement, so you can easily skip the whole suite. Wrap your tests in double "describe" statements, you will need it to better setup your cases (more on that later).
2. Run all setup instructions to bring service to desired state. 3. Run test case. 4. Optionally run the outcome through your automated asserters. Flow of running tests