Created
October 19, 2015 13:54
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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