Skip to content

finnishandy/KarmaRequire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project for a working example of Jasmine test running on Karma with Require.js (AMD) modules.

I had hard time finding proper solutions for testing AMD code so here's a setup I ended up doing. PhantomJS2 is used for IndexedDB as it supports it.

Uses Dexie.js as IndexedDB wrapper, also uses jasmine-jquery.

Install node dependencies:

$ npm install

Run tests:

use karma plugin for Idea.

Libraries used http://requirejs.org/ http://jasmine.github.io/ https://github.com/dfahlander/Dexie.js/wiki/Dexie https://github.com/karma-runner/karma-phantomjs-launcher

About

AMD Testing setup on Karma

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors