TDD: Factory generator with factory.ts and faker.js to ease your testing in TypeScript applications

Posted by José Silva on 10-Jun-2019 12:26:38

When writing unit testing it is always good practice to mock the database with test data to achieve the F.I.R.S.T principles of unit testing.

With only a few models in an application it is not too difficult to mock the necessary test data, but when your application grows it starts to become unmanageable. For example, can you imagine mocking data for an application with over 200 models?

Read More

Topics: software development, javascript, programming, computer science, web development, mock data, typescript, unit testing

Free eBook:

The Use of Technology in Clinical Skills Assessment

An essential read for those introducing technology into clinical skills assessment. 

Click to Download eBook 

Technology can:

  • Reduce error rates
  • Decrease administration time
  • Increase quality standards

Subscribe to our monthly email

Recent Posts