mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
77bf93c5ad
* 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>
23 lines
460 B
JavaScript
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'],
|
|
},
|
|
},
|
|
};
|