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