Skip to content

Instantly share code, notes, and snippets.

@pahund
Created October 19, 2015 13:54
Show Gist options
  • Save pahund/7d335da917e68a16b2c6 to your computer and use it in GitHub Desktop.
Save pahund/7d335da917e68a16b2c6 to your computer and use it in GitHub Desktop.
Wallaby test configuration with env.params.env – there seems to be a problem with comma-separated env variables
const babel = require("babel");
module.exports = function () {
return {
files: [
"app/**/*.js"
],
tests: [
"test/app/**/*-test.js"
],
preprocessors: {
"**/*.js": file => babel.transform(file.content, {
sourceMap: true
})
},
env: {
type: "node",
runner: "node",
params: {
// THIS WORKS:
env: "advertising-service.endpoint=http://10.44.229.1:36101/adv/"
// THIS DOESN'T WORK:
//env: "foo=bar,advertising-service.endpoint=http://10.44.229.1:36101/adv/"
}
},
workers: {
recycle: true
}
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment