In the previous article, I wrote about how to setup karma for testing AngularJS.x written with ES2015. Since then, I stumbled upon few issues while trying to test an AngularJS.x component written in ES2015 according to the angular ES2015 style guide. In this post, I’m sharing how to test AngularJS.x component written in ES2015.
Converting AngularJS.x code to use ES2015 is one thing. It’s an iterative process that should be taken with great care. However, aside from converting the code, you should also convert the tests to the setup environment. In this article I share the setup I use for running Echoes Player tests with karma & browserify.
A couple of years ago I started developing Echoes Player with Backbone.js, Underscore.js, Bootstrap and Require.js. Recently I migrated the code to use browserify, and i’d like to share the insights from this process.