stackviz/test/karma.conf.js
Ghanshyam Mann 6a4be31ccd Move stackviz-nodejs10-run-test-browser to Firefox
stackviz-nodejs10-run-test-browser job started failing on
chrome browser
- https://bugs.launchpad.net/stackviz/+bug/1908606

Horizon and its plugins also moved the nodejs browser jobs to
firefox now, let's move stackviz jobs too to make this job green.

Closes-Bug: #1908606
Change-Id: I4a63a54ee5fce983c3254805b39549d145159be9
2020-12-23 04:44:17 +00:00

57 lines
986 B
JavaScript

'use strict';
var istanbul = require('browserify-istanbul');
var isparta = require('isparta');
module.exports = function(config) {
config.set({
basePath: '../',
frameworks: ['jasmine', 'browserify'],
preprocessors: {
'app/js/**/*.js': ['browserify', 'coverage']
},
browsers: ['Firefox'],
reporters: ['progress', 'subunit'],
autoWatch: true,
singleRun: true,
browserify: {
debug: true,
transform: [
'bulkify',
istanbul({
instrumenter: isparta,
ignore: ['**/node_modules/**', '**/test/**']
})
]
},
subunitReporter: {
slug: true,
tags: ['worker-0']
},
proxies: {
'/': 'http://localhost:9876/'
},
urlRoot: '/__karma__/',
files: [
// app-specific code
'app/js/main.js',
// 3rd-party resources
'node_modules/angular-mocks/angular-mocks.js',
// test files
'test/unit/**/*.js'
]
});
};