zhaoyongjie commented on code in PR #20404:
URL: https://github.com/apache/superset/pull/20404#discussion_r898742481


##########
superset-frontend/spec/helpers/shim.ts:
##########
@@ -81,3 +81,5 @@ setupSupersetClient();
 jest.mock('src/hooks/useTabId', () => ({
   useTabId: () => 1,
 }));
+
+process.env.WEBPACK_MODE = 'test';

Review Comment:
   the environment variable `WEBPACK_MODE` was defined at webpack.config.js. 
add a new value `test` to determine if it is in the Jest process.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to