mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
1360b73295
* Port types to TS * Fix CI commands * Fix typo in yml file * Address PR comments * Remove aliased accessibility queries * Add flow types * Update build to support TS * Clean up removed aliased queries * Move @babel/plugin-transform-flow-strip-types to test config * Address PR comments * Delete flow tests * Retrigger pipeline * Update src/helpers/timers.ts 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: '10',
|
|
},
|
|
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'],
|
|
},
|
|
},
|
|
};
|