Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Update NODE_ENV in environment test #99

Merged
merged 1 commit into from
Jan 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion test/cli/test-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ test('`fusion test-app` environment variables', async t => {
const args = `test-app --dir=${dir} --configPath=../../../build/jest-config.js --match=environment-variables`;

const cmd = `require('${runnerPath}').run('${args}')`;
const response = await exec(`node -e "${cmd}"`);
const response = await exec(`node -e "${cmd}"`, {
env: Object.assign({}, process.env, {
NODE_ENV: 'development',
}),
});
t.equal(countTests(response.stderr), 2, 'ran 2 tests');

t.end();
Expand Down