Remove unused code, get tests passing on Travis
This commit is contained in:
@@ -3,14 +3,6 @@
|
||||
const path = require('path');
|
||||
const pkg = require('../package.json');
|
||||
|
||||
/**
|
||||
* The config below is not enough to run Karma. In addition, we need to add
|
||||
* all library files in dependency order. This could be done with a plugin if
|
||||
* Karma supported async plugins (there may be other alternatives as well). But
|
||||
* for now we start Karma with the `tasks/test.js` script. This script
|
||||
* sorts dependencies and adds files to the Karma config below.
|
||||
*/
|
||||
|
||||
module.exports = function(karma) {
|
||||
karma.set({
|
||||
frameworks: ['mocha'],
|
||||
@@ -61,18 +53,6 @@ module.exports = function(karma) {
|
||||
'**/*.js': ['webpack']
|
||||
},
|
||||
reporters: ['progress'],
|
||||
coverageReporter: {
|
||||
reporters: [
|
||||
{
|
||||
type: 'lcov', // produces HTML output and lcov
|
||||
dir: '../coverage/',
|
||||
subdir: '.'
|
||||
},
|
||||
{
|
||||
type: 'text-summary' // prints the textual summary to the terminal
|
||||
}
|
||||
]
|
||||
},
|
||||
webpackMiddleware: {
|
||||
noInfo: true
|
||||
}
|
||||
@@ -119,7 +99,7 @@ module.exports = function(karma) {
|
||||
}
|
||||
},
|
||||
hostname: 'travis.dev',
|
||||
reporters: ['dots', 'saucelabs', 'coverage'],
|
||||
reporters: ['dots', 'saucelabs'],
|
||||
browserDisconnectTimeout: 10000,
|
||||
browserDisconnectTolerance: 1,
|
||||
captureTimeout: 240000,
|
||||
@@ -127,9 +107,6 @@ module.exports = function(karma) {
|
||||
customLaunchers: customLaunchers,
|
||||
browsers: Object.keys(customLaunchers),
|
||||
preprocessors: {
|
||||
// source files, that you wanna generate coverage for
|
||||
// do not include tests or libraries
|
||||
// (these files will be instrumented by Istanbul)
|
||||
'../src/**/*.js': ['coverage']
|
||||
},
|
||||
coverageReporter: {
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
// TODO: get rid of this when we get rid of goog base.js
|
||||
var CLOSURE_NO_DEPS = true; // eslint-disable-line
|
||||
Reference in New Issue
Block a user