mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 21:47:56 +00:00
4a3694c831
- Replaced shadowColor/shadowOffset/shadowOpacity/shadowRadius with boxShadow - Fixed 28 files (21 screens + 7 components) - Preserved elevation for Android compatibility - All React Native Web deprecation warnings resolved Files fixed: - All screen components - All reusable components - Navigation components - Modal components
32 lines
1.1 KiB
JavaScript
32 lines
1.1 KiB
JavaScript
module.exports = {
|
|
preset: 'jest-expo',
|
|
setupFiles: ['<rootDir>/jest.setup.before.cjs'],
|
|
setupFilesAfterEnv: ['<rootDir>/jest.setup.cjs'],
|
|
transformIgnorePatterns: [
|
|
'node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg|@polkadot/.*|@pezkuwi/.*|@babel/runtime)',
|
|
'!../shared/.*',
|
|
],
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
'react-native-gesture-handler': '<rootDir>/__mocks__/react-native-gesture-handler.js',
|
|
'react-native-reanimated': '<rootDir>/__mocks__/react-native-reanimated.js',
|
|
'^sonner$': '<rootDir>/__mocks__/sonner.js',
|
|
'@polkadot/extension-dapp': '<rootDir>/__mocks__/polkadot-extension-dapp.js',
|
|
},
|
|
testMatch: ['**/__tests__/**/*.test.(ts|tsx|js)'],
|
|
collectCoverageFrom: [
|
|
'src/**/*.{ts,tsx}',
|
|
'!src/**/*.d.ts',
|
|
'!src/**/__tests__/**',
|
|
'!src/**/types/**',
|
|
],
|
|
coverageThreshold: {
|
|
global: {
|
|
statements: 35,
|
|
branches: 20,
|
|
functions: 25,
|
|
lines: 35,
|
|
},
|
|
},
|
|
};
|