Skip to content

Commit

Permalink
Move test environment setting up to the command
Browse files Browse the repository at this point in the history
  • Loading branch information
insin committed Jun 1, 2016
1 parent 400799d commit ddcab40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 7 additions & 0 deletions src/commands/test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import argvSetEnv from 'argv-set-env'

import karmaServer from '../karmaServer'

export default function(args, cb) {
argvSetEnv()

// Force the environment to test
process.env.NODE_ENV = 'test'

let isCi = process.env.CONTINUOUS_INTEGRATION === 'true'

console.log('nwb: test')
Expand Down
5 changes: 0 additions & 5 deletions src/createKarmaConfig.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
require('argv-set-env')()

// Force the environment to test
process.env.NODE_ENV = 'test'

import path from 'path'

import merge from 'webpack-merge'
Expand Down

0 comments on commit ddcab40

Please sign in to comment.