Skip to content

Commit f851afa

Browse files
committed
update karma configuration
1 parent 35010ae commit f851afa

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

karma.conf.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
process.env.TEST = true;
2-
process.env.NODE_ENV = 'test';
2+
process.env.NODE_ENV = "test";
33

4-
const webpack = require("webpack");
5-
const path = require("path");
6-
const webpackConfig = require('./webpack.config.js')({ production: false, karma: true });
4+
const webpackConfig = require("./webpack.config.js")({ production: false, karma: true });
75

86
delete webpackConfig.entry;
97

10-
module.exports = function(config) {
8+
module.exports = config => {
119

1210
var configuration = {
1311
basePath: "",
@@ -20,7 +18,7 @@ module.exports = function(config) {
2018
files: [
2119
"./test/**/**/**.test.ts",
2220
{
23-
pattern: '**/*.map',
21+
pattern: "**/*.map",
2422
served: true,
2523
included: false,
2624
watched: true
@@ -65,14 +63,14 @@ module.exports = function(config) {
6563
colors: true,
6664
logLevel: config.LOG_INFO,
6765
autoWatch: true,
68-
browsers: ['Chrome']
66+
browsers: []
6967
};
7068

7169
if (process.env.TRAVIS) {
72-
configuration.browsers = ['PhantomJS'];
70+
configuration.browsers.push("PhantomJS");
7371
configuration.plugins.push("karma-phantomjs-launcher");
7472
} else {
75-
configuration.browsers = ['PhantomJS'];
73+
configuration.browsers.push("PhantomJS");
7674
configuration.plugins.push("karma-phantomjs-launcher");
7775
}
7876

0 commit comments

Comments
 (0)