If my process.env.NODE_ENV is development, loading this module using babel-loader will make __DEV__ in index.jsx to true, and it enables every this.shoud.xxx check in the source.
Is there any way to avoid this? And could I get a reply about why tests are integrated with the source and fired under NODE_ENV = development, not NODE_ENV = test?
If my
process.env.NODE_ENVisdevelopment, loading this module usingbabel-loaderwill make__DEV__inindex.jsxtotrue, and it enables everythis.shoud.xxxcheck in the source.Is there any way to avoid this? And could I get a reply about why tests are integrated with the source and fired under
NODE_ENV = development, notNODE_ENV = test?