Sha256: a08f2a5648bb34cec904c0e8e276be6b0421802607697cd551b3b1a2d604c102

Contents?: true

Size: 608 Bytes

Versions: 17

Compression:

Stored size: 608 Bytes

Contents

allTestFiles = []
TEST_REGEXP = /(spec|test)(\.coffee)?(\.js)?$/i
pathToModule = (path) ->
  path.replace(/^\/base\//, "").replace(/\.js$/, "").replace(/\.cofee$/, "")

Object.keys(window.__karma__.files).forEach (file) ->
  # Normalize paths to RequireJS module names.
  allTestFiles.push pathToModule(file)  if TEST_REGEXP.test(file)
  return

require.config
  # Karma serves files under /base, which is the basePath from your config file
  baseUrl: "/base"

  # dynamically load all test files
  deps: allTestFiles

  # we have to kickoff jasmine, as it is asynchronous
  callback: window.__karma__.start

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
hooch-0.4.2 jasmine/node_modules/karma/requirejs.config.tpl.coffee
hooch-0.4.1 jasmine/node_modules/karma/requirejs.config.tpl.coffee
hooch-0.4.0 jasmine/node_modules/karma/requirejs.config.tpl.coffee
hooch-0.3.0 jasmine/node_modules/karma/requirejs.config.tpl.coffee
hooch-0.2.1 jasmine/node_modules/karma/requirejs.config.tpl.coffee
hooch-0.2.0 jasmine/node_modules/karma/requirejs.config.tpl.coffee
hooch-0.1.0 jasmine/node_modules/karma/requirejs.config.tpl.coffee
hooch-0.0.8 jasmine/node_modules/karma/requirejs.config.tpl.coffee
hooch-0.0.7 jasmine/node_modules/karma/requirejs.config.tpl.coffee
hooch-0.0.6 jasmine/node_modules/karma/requirejs.config.tpl.coffee
entangled-0.0.16 spec/dummy/public/node_modules/karma/requirejs.config.tpl.coffee
entangled-0.0.15 spec/dummy/public/node_modules/karma/requirejs.config.tpl.coffee
entangled-0.0.14 spec/dummy/public/node_modules/karma/requirejs.config.tpl.coffee
entangled-0.0.13 spec/dummy/public/node_modules/karma/requirejs.config.tpl.coffee
entangled-0.0.12 spec/dummy/public/node_modules/karma/requirejs.config.tpl.coffee
entangled-0.0.11 spec/dummy/public/node_modules/karma/requirejs.config.tpl.coffee
entangled-0.0.10 spec/dummy/public/node_modules/karma/requirejs.config.tpl.coffee