Skip to content

Instantly share code, notes, and snippets.

@dezman
Created March 31, 2017 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dezman/2acf04974202ac2b92d69f13b0bfd9e8 to your computer and use it in GitHub Desktop.
Save dezman/2acf04974202ac2b92d69f13b0bfd9e8 to your computer and use it in GitHub Desktop.
// shiva.js
// a jasmine spec loader
// required global
window.jasmineRequire = require('./vendor/jasmine-2.5.2/jasmine.js')
window.specHelper = require('./helper.coffee')
// load jasmine
require('./vendor/jasmine-2.5.2/jasmine-html.js')
require('./vendor/jasmine-2.5.2/boot.js')
require('./vendor/jasmine-2.5.2/console.js')
// pipe $ global to jasmine-jquery, other herlper libraries here...
require("imports-loader?$=jquery!./vendor/jasmine-jquery.js")
// load custom config
require('./custom-jasmine.coffee')
// load spec files...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment