mardi 6 septembre 2016

How to add unit test library to actual RequireJS single page application?

I want to add unit tests to my RequireJS-based app.

My current structure:

  • application.js file with requirejs.config and many paths inside it
  • base.html file with

    <script src="application.js"> <script>require(["polyfills"], function() {require(["app"])});</script>

  • grunt watcher and builder for producton version

  • django on backend.

I want to write unit tests for various modules in my app. Modules in my app are nested between itself.

How can I do that?

I want to use Jasmine or TAPE test frameworks (or something better, if you suggest one).

Aucun commentaire:

Enregistrer un commentaire