|
@@ -1,4 +1,3 @@
|
|
|
-const webpackConfig = require('./webpack.config.js');
|
|
|
process.env.CHROME_BIN = '/snap/bin/chromium';
|
|
|
|
|
|
module.exports = function(config) {
|
|
@@ -9,7 +8,7 @@ module.exports = function(config) {
|
|
|
exclude: [],
|
|
|
|
|
|
files: [
|
|
|
- {pattern: 'tests/*.spec.js',watched:true,served:true,included:true}
|
|
|
+ 'tests/*.spec.js'
|
|
|
|
|
|
|
|
|
|
|
@@ -21,9 +20,9 @@ module.exports = function(config) {
|
|
|
],
|
|
|
|
|
|
|
|
|
- autoWatch: true,
|
|
|
+ autoWatch: false,
|
|
|
|
|
|
- singleRun:false,
|
|
|
+ singleRun: true,
|
|
|
|
|
|
failOnEmptyTestSuite:false,
|
|
|
|
|
@@ -34,7 +33,7 @@ module.exports = function(config) {
|
|
|
|
|
|
browsers: ['ChromeHeadless'],
|
|
|
|
|
|
- reporters: ['mocha','kjhtml'],
|
|
|
+ reporters: ['mocha' ],
|
|
|
|
|
|
|
|
|
listenAddress: '0.0.0.0',
|
|
@@ -47,7 +46,7 @@ module.exports = function(config) {
|
|
|
|
|
|
browserDisconnectTimeout: 5000,
|
|
|
|
|
|
- browserNoActivityTimeout: 10000,
|
|
|
+ browserNoActivityTimeout: 60000,
|
|
|
|
|
|
captureTimeout: 60000,
|
|
|
|
|
@@ -68,22 +67,49 @@ module.exports = function(config) {
|
|
|
|
|
|
|
|
|
|
|
|
- webpack: webpackConfig,
|
|
|
+ webpack: {
|
|
|
+ node: {
|
|
|
+ fs: 'empty',
|
|
|
+ },
|
|
|
+ module: {
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ test: /\.js$/,
|
|
|
+ exclude: /(node_modules)/,
|
|
|
+ use: {
|
|
|
+ loader: "babel-loader",
|
|
|
+ options: {
|
|
|
+ presets: ["@babel/preset-env"]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ test: /\.g4$/,
|
|
|
+ exclude: /(node_modules)/,
|
|
|
+ use: {
|
|
|
+ loader:'antlr4-webpack-loader'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ },
|
|
|
preprocessors: {
|
|
|
|
|
|
|
|
|
|
|
|
- './tests/*.js': ['webpack']
|
|
|
+ 'tests/*.spec.js': ['webpack']
|
|
|
},
|
|
|
webpackMiddleware: {
|
|
|
|
|
|
noInfo: true,
|
|
|
- stats: 'errors-only'
|
|
|
+ stats: {
|
|
|
+ chunks: false
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
|
|
|
mochaReporter: {
|
|
|
- output: 'noFailures'
|
|
|
+ output: 'full'
|
|
|
}
|
|
|
});
|
|
|
};
|