Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -443,11 +443,10 @@ export default [
'src/plugins/borrow-plugins/plugins/aave/AaveBorrowEngineFactory.ts',
'src/plugins/borrow-plugins/plugins/aave/index.ts',
'src/plugins/gui/amountQuotePlugin.ts',
'src/plugins/gui/components/GuiFormField.tsx',

'src/plugins/gui/providers/bityProvider.ts',
'src/plugins/gui/providers/ioniaProvider.ts',
'src/plugins/gui/providers/kadoOtcProvider.ts',

'src/plugins/gui/providers/moonpayProvider.ts',
'src/plugins/gui/providers/mtpelerinProvider.ts',

Expand Down
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
},
preset: 'react-native',
setupFilesAfterEnv: ['./jestSetup.js'],
testMatch: ['**/?(*.)+(test|spec).[tj]s?(x)'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not name tests normally, instead of tweaking the rules? We strongly want to keep our project as close to upstream React Native as possible, because each difference makes upgrading more time-consuming.

Most of our mock data lives in /util/fake. Maybe rename sampleRecords to fakeVaultRecords and put it in there.

transformIgnorePatterns: [
'<rootDir>/node_modules/(?!(@react-native|react-native|@react-navigation))'
]
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
"dependencies": {
"@brigad/react-native-adservices": "^0.1.3",
"@ethersproject/shims": "^5.6.0",
"@noble/curves": "^1.9.7",
"@noble/hashes": "^1.8.0",
"@react-native-async-storage/async-storage": "^1.19.4",
"@react-native-clipboard/clipboard": "^1.16.3",
"@react-native-community/datetimepicker": "^8.4.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ exports[`FilledTextInput should render with some props 1`] = `
>
<Text
allowFontScaling={false}
danger={true}
mode="danger"
style={
[
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ exports[`AccelerateTxModalComponent should render with loading props 1`] = `
numberOfLines={0}
style={
[
{},
{
"color": "#FFFFFF",
"fontFamily": "Quicksand-Regular",
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/modals/__snapshots__/LogsModal.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ exports[`LogsModal should render with a logs modal 1`] = `
numberOfLines={0}
style={
[
{},
{
"color": "#FFFFFF",
"fontFamily": "Quicksand-Regular",
Expand Down Expand Up @@ -916,7 +917,6 @@ exports[`LogsModal should render with a logs modal 1`] = `
>
<Text
allowFontScaling={false}
danger={false}
style={
[
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ exports[`PasswordReminderModal should render with loading props 1`] = `
numberOfLines={0}
style={
[
{},
{
"color": "#FFFFFF",
"fontFamily": "Quicksand-Regular",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ exports[`TextInputModal should render with a blank input field 1`] = `
numberOfLines={0}
style={
[
{},
{
"color": "#FFFFFF",
"fontFamily": "Quicksand-Regular",
Expand Down Expand Up @@ -1004,6 +1005,7 @@ exports[`TextInputModal should render with a populated input field 1`] = `
numberOfLines={0}
style={
[
{},
{
"color": "#FFFFFF",
"fontFamily": "Quicksand-Regular",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ exports[`CreateWalletAccountSelect renders 1`] = `
numberOfLines={0}
style={
[
{},
{
"color": "#FFFFFF",
"fontFamily": "Quicksand-Regular",
Expand All @@ -376,6 +377,7 @@ exports[`CreateWalletAccountSelect renders 1`] = `
numberOfLines={0}
style={
[
{},
{
"color": "#FFFFFF",
"fontFamily": "Quicksand-Regular",
Expand Down Expand Up @@ -922,7 +924,6 @@ exports[`CreateWalletAccountSelect renders 1`] = `
>
<Text
allowFontScaling={false}
danger={false}
style={
[
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ exports[`CreateWalletImportScene should render with loading props 1`] = `
numberOfLines={0}
style={
[
{},
{
"color": "#FFFFFF",
"fontFamily": "Quicksand-Regular",
Expand Down
Loading
Loading