mm
Matt Fehskens

A software developer living his passion of development since 2003. In addition to always trying to improve his skills, he’s also a proud husband and an avid gamer.

Posts by: Matt Fehskens

Testing Angular 2 and Continuous Integration with Jest

Introduction Angular is one of the most popular front-end frameworks around today. Developed by Google, it provides a lot of functionality out of the box. Like its predecessor, AngularJS, it was built with testing in mind. By default, Angular is made to test using Karma and Jasmine. There are, however, some drawbacks to using the default setup, such as performance. Jest is a testing platform made by Facebook, which can…

Testing Routes in Angular 2

Introduction Routes provide benefits to the users of our applications. While routes are not necessary in all applications, they make applications shine a little brighter. Having routes in your application gives users the ability to return to a specific point in your application just by typing in a URL. Testing routes comes with some interesting challenges. Keep reading to find out how to tackle them. Prerequisites Before starting this article,…

Testing Services in Angular 2

Introduction Services are important in any complex Angular architecture. They allow our code to share common functionality across our application. In this article, we’ll explore how to use a test-driven development (TDD) approach to incorporate services into our Angular applications. Prerequisites Before starting this article, it is assumed that you have: An understanding of Angular 2, Knowledge of TypeScript and how it relates to JavaScript, An understanding of ES6/ES2015 concepts…

Testing Components in Angular 2 with Jasmine

Introduction In this article, we’ll look at how to unit test components built with Angular 2. Components are the centerpiece of Angular 2. They are the nucleus around which the rest of the framework is built. We’ll explore what a component is, why it is important, and how to test it. Prerequisites Before starting this article, it is assumed that you have: An understanding of Angular 2, Knowledge of TypeScript…

Setting Up Angular 2 with Webpack

Introduction In this article, we’ll be looking at the setup required to create an Angular 2 project with unit tests. We’ll cover various required technologies and how to write each of their configurations. Let’s dive in. Prerequisites and Assumptions Before getting started, we should make sure that we have everything we need. It is assumed that you have: An intermediate understanding of JavaScript, including concepts of CommonJS modules, At least…