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
I'm trying really hard to make my tests run on the release version of my apk, but the assembleRelease task seems to be ignoring any exts I've added to metro.config.js, even through the sourceExts get is called at some point, it is being ignored, here's my conf:
const{ sourceExts }=require('metro-config/src/defaults/defaults')module.exports={resolver: {getsourceExts(){constexts=process.env.RN_SRC_EXT
? process.env.RN_SRC_EXT.split(',').concat(sourceExts)
: sourceExtsconsole.log('[METRO] ',exts)// this is called on assembleRelease tooreturnexts}},transformer: {getTransformOptions: async()=>({transform: {experimentalImportSupport: false,inlineRequires: false}})}}
assembleDebug works fine, and uses the exts defined by my env vars, but assembleRelease ignore them.
I know this is not a direct detox issue, but at the advanced mock docs there's a example pointing to use the assembleRelease without any warning, it would be nice to have some note on this issue (also, there are a lot of issues on stackoverflow and here not answered/solved about it)
Note: the reason why I'm trying to use the release version is cuz the debug version is slow on tests (typing is really slow, i suspect that it's cuz there's the RN ws looking for the metro server and making the event loop occupied every X seconds during the tests)
The text was updated successfully, but these errors were encountered:
We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the detox tag.
Feel free to post your Stack Overflow question here for more visility. We'll take a look at it.
For more information on bots in this reporsitory, read this discussion.
Grohden
changed the title
assembleDebug isn't using metro exts replacements (mocks)
assembleRelease isn't using metro exts replacements (mocks)
Jul 25, 2019
It actually the bot did its job as expected. This is a usage question and we are asking that those be posted on Stack Overflow. Instead of posting meme spam, ask your question there and link it here.
lockbot
locked as resolved and limited conversation to collaborators
Jul 31, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm trying really hard to make my tests run on the release version of my apk, but the
assembleRelease
task seems to be ignoring any exts I've added tometro.config.js
, even through thesourceExts
get is called at some point, it is being ignored, here's my conf:And here is my build definition
assembleDebug
works fine, and uses the exts defined by my env vars, butassembleRelease
ignore them.I know this is not a direct detox issue, but at the advanced mock docs there's a example pointing to use the
assembleRelease
without any warning, it would be nice to have some note on this issue (also, there are a lot of issues on stackoverflow and here not answered/solved about it)Note: the reason why I'm trying to use the release version is cuz the debug version is slow on tests (typing is really slow, i suspect that it's cuz there's the RN ws looking for the metro server and making the event loop occupied every X seconds during the tests)
The text was updated successfully, but these errors were encountered: