04-mocking/

directory
v0.0.0-...-733830a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2020 License: MIT

README

Mocking

Mocking is a way of extending what we have done in the previous section. To successfully mock our system parts well we need to think about the structure of the project.

  • service reshuffle to split / clarify
  • adds code to controller but clarity is greater
  • separates functional use, but allows for inclusion in the package.

The aim of mocking is to be able to follow the same API and the same functions and flow, sequence but by removing the need for an actual database, or actual other components. So, we can create a faked response of positive and negative use cases to test the intended flows, the exceptions and errors.

Directories

Path Synopsis
src
app

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL