unit testing - Cannot setup `babel-plugin-rewire` for React tests -
i'm trying setup babel-plugin-rewire in jest tests can generate small test snapshot wrapper component instead of having huge 1 child components in it. the settings seem correct following error: referenceerror: wrapper not defined @ _get_original__ (app\components\wrapper\tests\index.te st.js:22:2168) @ _get__ (app\components\wrapper\tests\index.test.js:22: 1912) @ suite.<anonymous> (app\components\wrapper\tests\index. test.js:8:82) @ object.<anonymous> (app\components\wrapper\tests\index .test.js:6:1) @ process._tickcallback (internal\process\next_tick.js:103:7) package.json "babel": { "presets": [ [ "latest", { "es2015": { "modules": false } } ], "react" ], "env": { "test": { "plugins": [ "babel-plugin-rewire", "transform-es2...