mirror of
https://github.com/hanzoai/Detox.git
synced 2026-09-24 16:55:12 +00:00
* Migrate missing pieces to androidx using Jetifier * Introduce a working migration to RN .60.x * Make demo apps RN-version back-compatible * Apply ugly workaround over hermes lookup bug by RN * Apply migration to new metro config scheme * Work around an issue with componentWillMount deprecation * Make hermes location patch-script os-agnostic
17 lines
361 B
JavaScript
17 lines
361 B
JavaScript
/*
|
|
* This has been replaced by 'metro.config.js'. It's only here to enable running with RN<60.x
|
|
*/
|
|
|
|
let metroBundler;
|
|
try {
|
|
metroBundler = require('metro');
|
|
} catch (ex) {
|
|
metroBundler = require('metro-bundler');
|
|
}
|
|
|
|
module.exports = {
|
|
getBlacklistRE: function() {
|
|
return metroBundler.createBlacklist([/test\/.*/, /detox\/node_modules\/.*/]);
|
|
}
|
|
};
|