Unlike managed .NET code unit tests, JavaScript unit testing requires a bit of preparation to get up and running. There are a few parts to your setup: you will need a tool to integrate your JavaScript unit test with Visual Studio, a JavaScript unit testing assertion framework, an Xrm.Page fake library, and optionally, a tool to run your JavaScript without a browser (headless). You will also need Visual Studio 2015.