Răsfoiți Sursa

run tests with BABEL_ENV

Evan You 9 ani în urmă
părinte
comite
e026c044ba
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      package.json

+ 1 - 1
package.json

@@ -14,7 +14,7 @@
     "cart": "cd examples/shopping-cart && webpack-dev-server --inline --hot --config ../webpack.shared.config.js",
     "cart": "cd examples/shopping-cart && webpack-dev-server --inline --hot --config ../webpack.shared.config.js",
     "chat": "cd examples/chat && webpack-dev-server --inline --hot --config ../webpack.shared.config.js",
     "chat": "cd examples/chat && webpack-dev-server --inline --hot --config ../webpack.shared.config.js",
     "build": "node build/build.js",
     "build": "node build/build.js",
-    "test": "eslint src && mocha --compilers js:babel-core/register",
+    "test": "eslint src && BABEL_ENV=development mocha --compilers js:babel-core/register",
     "docs": "cd docs && gitbook serve",
     "docs": "cd docs && gitbook serve",
     "deploy-docs": "cd docs && ./deploy.sh"
     "deploy-docs": "cd docs && ./deploy.sh"
   },
   },