Files
edx-platform/common/static/karma_common_requirejs.conf.js
Michael Terry a34c8c8233 Drop remaining coffee use
This basically commits the transpiled CoffeeScript JS (with minor
cleanup) and removes coffee build support.

A tiny amount of support for xblocks exists, because external users
may have xblocks with coffee. But no coffee in our tree anyway.
2018-04-13 14:10:40 -04:00

44 lines
1.1 KiB
JavaScript

// Karma config for common-requirejs suite.
// Docs and troubleshooting tips in common/static/common/js/karma.common.conf.js
/* eslint-env node */
'use strict';
var path = require('path');
var configModule = require(path.join(__dirname, '../../common/static/common/js/karma.common.conf.js'));
var options = {
includeCommonFiles: true,
normalizePathsForCoverageFunc: function(appRoot, pattern) {
return path.join(appRoot, '/common/static/' + pattern);
},
libraryFiles: [
{pattern: 'js/libs/**/*.js'},
{pattern: 'js/test/**/*.js'},
{pattern: 'js/vendor/**/*.js'}
],
// Make sure the patterns in sourceFiles and specFiles do not match the same file.
// Otherwise Istanbul which is used for coverage tracking will cause tests to not run.
sourceFiles: [],
specFiles: [
{pattern: 'common/js/spec/**/*spec.js'}
],
fixtureFiles: [
{pattern: 'common/templates/**/*.*'}
],
runFiles: [
{pattern: 'common/js/spec/main_requirejs.js', included: true}
]
};
module.exports = function(config) {
configModule.configure(config, options);
};