Skip to content

Commit

Permalink
fix e2e script
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds committed Mar 9, 2017
1 parent 416f8b7 commit aa0fc52
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/e2e-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if (devMode) {
`)
}

const serviceStartScriptName = devMode ? 'dev' : 'start'
const serviceStartScriptName = devMode ? 'dev' : ''

const cwd = path.join(__dirname, '..')
const clientCwd = path.join(cwd, 'client')
Expand Down Expand Up @@ -60,29 +60,29 @@ const startMongoCommand = {
}
// load e2e mongo with data
const loadDataCommand = {
script: `cd api && npm run generateData --silent`,
script: `cd api && npm start generateData --silent`,
message: '⤵️ loading data into mongodb',
}
// build app server
const buildApiCommand = devMode ? null : {
script: `npm run build --silent`,
script: `npm start build --silent`,
message: '🔨 running api build',
}
// start app server
const startApiCommand = {
script: `npm run ${serviceStartScriptName} --silent`,
script: `npm start ${serviceStartScriptName} --silent`,
resolveEarly: true,
resolveDelay: 500,
message: '🔑 starting api server',
}
// build client
const buildClientCommand = devMode ? null : {
script: `npm run build --silent`,
script: `npm start build --silent`,
message: '🔨 running client build',
}
// start (built) client http-server
const startClientCommand = {
script: `npm run ${serviceStartScriptName} --silent`,
script: `npm start ${serviceStartScriptName} --silent`,
resolveEarly: true,
resolveDelay: 500,
message: '🔑 starting client server',
Expand Down

0 comments on commit aa0fc52

Please sign in to comment.