Files
callstack__react-native-tes…/babel.config.js
T
Maciej Jastrzebski 77bf93c5ad chore: update Jest to 28 (#1008)
* chore: update jest

* refactor: pass useFakeTimer config in tests

* refactor: remove unused code

* fix jest config unable to discover babel due to rootDir change

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2022-07-19 09:53:38 +02:00

23 lines
460 B
JavaScript

module.exports = {
presets: [
'@babel/preset-typescript',
'@babel/preset-react',
[
'@babel/preset-env',
{
targets: {
node: '14',
},
bugfixes: true,
},
],
],
plugins: ['@babel/plugin-proposal-class-properties'],
env: {
test: {
// https://github.com/react-native-community/upgrade-support/issues/152
plugins: ['@babel/plugin-transform-flow-strip-types'],
},
},
};