Grunt Cookbook by Botha Jurie-Jan
Author:Botha, Jurie-Jan
Language: eng
Format: epub, azw3
Publisher: Packt Publishing
Published: 2015-06-29T04:00:00+00:00
How to do it...
The following steps take us through creating a sample code base, creating a few tests to run against the code base, and configuring Grunt to run them for us.
We'll start by installing the package that contains the mocha-test plugin by following the instructions provided in the Installing a plugin recipe in Chapter 1, Getting Started with Grunt.
Then, we can create a JavaScript source file in our project directory that contains and exports a function that we'd like to have tested. Let's call it main.js and add the following content to it:module.exports.square = function (x) { return x * x; }
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(12709)
Hello! Python by Anthony Briggs(10010)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9879)
The Mikado Method by Ola Ellnestam Daniel Brolund(9878)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(9853)
Dependency Injection in .NET by Mark Seemann(9422)
Hit Refresh by Satya Nadella(8877)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8391)
The Kubernetes Operator Framework Book by Michael Dame(8025)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7844)
Exploring Deepfakes by Bryan Lyon and Matt Tora(7814)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7810)
Grails in Action by Glen Smith Peter Ledbrook(7778)
Practical Computer Architecture with Python and ARM by Alan Clements(7764)
Implementing Enterprise Observability for Success by Manisha Agrawal and Karun Krishnannair(7727)
Robo-Advisor with Python by Aki Ranin(7712)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7657)
Building Low Latency Applications with C++ by Sourav Ghosh(7614)
Svelte with Test-Driven Development by Daniel Irvine(7600)
