You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! After upgrading to crafty v1.24.0 and generating files with crafty ide, the following issue is happening specifically with jest.config.mjs:
After generating and using the jest.config.mjs in IntelliJ integrated test run, the following error occurs
Error: act(...) is not supported in production builds of React.
at Object.<anonymous>.exports.unstable_act (/home/dkasidia/workspace/securities-retail-paid-prices-plugin/server-war/src/main/frontend/node_modules/react/cjs/react.production.min.js:23:393)
I reproduced that with crafty v1.24.0 and the newly generated jest.config.mjs. The test run was working fine with previous jest.config.js (generated by older crafty version).
I tried to add NODE_ENV=test in the configuration so that it's appended to the jest command, but it was not effective.
I did some console.log in jest.config.mjs to check NODE_ENV. Initially it's test, then changes to production after initialize()
Could you please look into that? Thanks!
The text was updated successfully, but these errors were encountered:
Hello! After upgrading to crafty v1.24.0 and generating files with
crafty ide
, the following issue is happening specifically with jest.config.mjs:After generating and using the jest.config.mjs in IntelliJ integrated test run, the following error occurs
I reproduced that with crafty v1.24.0 and the newly generated jest.config.mjs. The test run was working fine with previous jest.config.js (generated by older crafty version).
I tried to add NODE_ENV=test in the configuration so that it's appended to the jest command, but it was not effective.
I did some console.log in jest.config.mjs to check NODE_ENV. Initially it's test, then changes to production after initialize()
Could you please look into that? Thanks!
The text was updated successfully, but these errors were encountered: