mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-02-20 00:33:07 +01:00
* chore: expo upgrade
* chore(mobile): expo sdk 52
* fix: android build
* chore(mobile): ⬆️ upgrade usb lib, jest, sentry
* fix(mobile): fix quick crypto android build
47 lines
1.4 KiB
JavaScript
47 lines
1.4 KiB
JavaScript
const {
|
|
moduleFileExtensions,
|
|
testMatch,
|
|
testPathIgnorePatterns,
|
|
watchPathIgnorePatterns,
|
|
moduleNameMapper,
|
|
} = require('./jest.config.base');
|
|
|
|
const babelConfig = {
|
|
presets: [
|
|
'module:metro-react-native-babel-preset',
|
|
['@babel/preset-env', { targets: { node: 'current' }, modules: 'commonjs' }],
|
|
'@babel/preset-typescript',
|
|
[
|
|
'@babel/preset-react',
|
|
{
|
|
runtime: 'automatic',
|
|
},
|
|
],
|
|
],
|
|
};
|
|
|
|
module.exports = {
|
|
rootDir: process.cwd(),
|
|
moduleFileExtensions,
|
|
testMatch,
|
|
testPathIgnorePatterns,
|
|
watchPathIgnorePatterns,
|
|
moduleNameMapper,
|
|
testEnvironment: 'jsdom',
|
|
preset: 'jest-expo',
|
|
|
|
transform: {
|
|
'\\.(js|jsx|ts|tsx)$': ['babel-jest', babelConfig],
|
|
},
|
|
transformIgnorePatterns: [
|
|
'node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@sentry/react-native|native-base|react-native-svg)',
|
|
],
|
|
setupFiles: [
|
|
'<rootDir>/../../node_modules/@shopify/react-native-skia/jestSetup.js',
|
|
'<rootDir>/../../node_modules/react-native-gesture-handler/jestSetup.js',
|
|
'<rootDir>/../../suite-native/test-utils/src/atomsMock.js',
|
|
'<rootDir>/../../suite-native/test-utils/src/expoMock.js',
|
|
'<rootDir>/../../suite-native/test-utils/src/walletSdkMock.js',
|
|
],
|
|
};
|