Skip to content

Commit

Permalink
Probably fix for error in test mode (#100)
Browse files Browse the repository at this point in the history
We have a test for test mode, which works during the build plugin
fails, but won't detect test mode when the file is loaded as a
server package.  So we detect non-build-plugin runs and abort for
those too.
  • Loading branch information
gadicc committed Jun 3, 2016
1 parent a7eaf09 commit c2db150
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/ecmascript-hot/hotVersionCheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var supported = new PackageVersion('0.4.4');

// Avoid version check in these circumstances
if (process.env.INSIDE_ACCELERATOR
|| process.env.APP_ID // i.e. on the server and not the build plugin
|| process.env.NODE_ENV==='production'
|| process.argv.indexOf('test') !== -1
|| process.argv.indexOf('test-packages') !== -1
Expand Down
1 change: 1 addition & 0 deletions packages/modules-runtime-hot/hot/versionCheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var supported = new PackageVersion('0.6.4-beta.0');

// Avoid version check in these circumstances
if (process.env.INSIDE_ACCELERATOR
|| process.env.APP_ID // i.e. on the server and not the build plugin
|| process.env.NODE_ENV==='production'
|| process.argv.indexOf('test') !== -1
|| process.argv.indexOf('test-packages') !== -1
Expand Down

0 comments on commit c2db150

Please sign in to comment.