Commit f0d2e91e authored by Eric Eastwood's avatar Eric Eastwood

Add some in-browser test fixes (but in-browser tests still broken)

I was curious on the status of those tests and had to fix some things before they would run. With these fixes, it correctly builds and boots but exits quickly after with npm ERR! code ELIFECYCLE and no other info.
parent fa6e686c
......@@ -9,7 +9,7 @@ var cdnPrefix = assetTag ? "/_s/" + assetTag : '';
function chooseFactory() {
if(window.location.protocol === 'file:') {
return require('../shared/native-factory');
} else if(!hosts.length) {
} else if(!hosts || hosts.length === 0) {
return require('../shared/passthrough-factory');
} else if(hosts.length === 1) {
return require('../shared/single-factory');
......
......@@ -319,7 +319,7 @@
"task-validate": "gulp validate",
"task-watch": "gulp watch",
"browser-build-tests": "webpack --config ./test/in-browser/webpack.config.js",
"browser-run-test": "cd ./test/in-browser/fixtures && devtool -chq runner.js",
"browser-run-test": "cd ./test/in-browser/fixtures && devtool -cq runner.js",
"browser-test": "npm run browser-build-tests && npm run browser-run-test",
"browser-watch-build-tests": "webpack -w --config ./test/in-browser/webpack.config.js",
"browser-watch-run-tests": "http-server ./test/in-browser -p 9191 & live-reload ./test/in-browser/fixtures --port 9192",
......
......@@ -3,6 +3,8 @@
var path = require('path');
var ProgressBarPlugin = require('progress-bar-webpack-plugin');
var getPostcssStack = require('@gitterhq/styleguide/postcss-stack');
var opts = require('yargs')
.option('nocoverage', {
type: 'boolean',
......@@ -75,6 +77,9 @@ module.exports = {
'gitter-client-env': path.resolve(__dirname, './fixtures/helpers/gitter-client-env.js'),
},
},
postcss: function(webpack) {
return getPostcssStack(webpack);
},
node: {
fs: 'empty',
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment