mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-30 10:45:18 -06:00
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
28 lines
485 B
JavaScript
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']
|
|
}
|
|
});
|
|
};
|