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

Commit

Permalink
Add Webpack global constants to test script
Browse files Browse the repository at this point in the history
  • Loading branch information
nbrohee committed Sep 21, 2016
1 parent 170b00a commit 5362dd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/tools/testSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
// and propType validation warnings.
process.env.NODE_ENV = 'test'

// Add global Webpack set constants
global.API_URI = 'http://localhost:3004/api'

// Disable webpack-specific features for tests since
// Mocha doesn't know what to do with them.
void ['.css', '.scss', '.png', '.jpg'].forEach(ext => {
Expand Down

0 comments on commit 5362dd0

Please sign in to comment.