60c95659a0
* Add method for sending tx to wallet * Setup registry-sdk in onboarding app * Build message for bond creation * Get response on signing and broadcasting tx * Run eject script * Display snackbar on creating bond * Add fallback to webpack config file * Handle review changes * Handle errors with snackbar
28 lines
519 B
JavaScript
28 lines
519 B
JavaScript
const babelJest = require('babel-jest').default;
|
|
|
|
const hasJsxRuntime = (() => {
|
|
if (process.env.DISABLE_NEW_JSX_TRANSFORM === 'true') {
|
|
return false;
|
|
}
|
|
|
|
try {
|
|
require.resolve('react/jsx-runtime');
|
|
return true;
|
|
} catch (e) {
|
|
return false;
|
|
}
|
|
})();
|
|
|
|
module.exports = babelJest.createTransformer({
|
|
presets: [
|
|
[
|
|
require.resolve('babel-preset-react-app'),
|
|
{
|
|
runtime: hasJsxRuntime ? 'automatic' : 'classic',
|
|
},
|
|
],
|
|
],
|
|
babelrc: false,
|
|
configFile: false,
|
|
});
|