Files
dolt/js/karma.conf.js
Erik Arvidsson 4639ca383a JS unit tests
This uses Karma with mocha+chai and browserify+babel. The tests
currently need to be run in a browser because we currently depend on
non node.js features (Blob and FileReader)

To run the tests go to <noms>/js/ and do `npm run start-test`.

Issue #256
2015-09-03 19:50:51 -04:00

28 lines
485 B
JavaScript

module.exports = function(config) {
config.set({
frameworks: ['mocha', 'browserify'],
preprocessors: {
'test/decode.js': ['browserify']
},
files: [
'test/decode.js'
],
browsers: ['Chrome', 'Firefox', 'IE', 'Safari'],
client: {
mocha: {
reporter: 'html', // change Karma's debug.html to the mocha web reporter
ui: 'tdd'
}
},
browserify: {
debug: true,
transform: ['babelify']
}
});
};