diff --git a/apps/wallet/.eslintrc.js b/apps/wallet/.eslintrc.js index 84ac123f02..f5492ae656 100644 --- a/apps/wallet/.eslintrc.js +++ b/apps/wallet/.eslintrc.js @@ -15,4 +15,5 @@ module.exports = { }, ], }, + ignorePatterns: ['node_modules/', 'android/', 'ios/', 'coverage/'], } diff --git a/apps/wallet/App.test.tsx b/apps/wallet/App.test.tsx new file mode 100644 index 0000000000..a549e844ba --- /dev/null +++ b/apps/wallet/App.test.tsx @@ -0,0 +1,11 @@ +import * as React from 'react' +import {it} from '@jest/globals' +import {render} from '@testing-library/react-native' + +import {App} from './App' + +it('renders correctly', () => { + const {getByTestId} = render() + const app = getByTestId('app') + expect(app).toBeDefined() +}) diff --git a/apps/wallet/App.tsx b/apps/wallet/App.tsx index 15079292c8..9755284dcf 100644 --- a/apps/wallet/App.tsx +++ b/apps/wallet/App.tsx @@ -3,7 +3,7 @@ import {Text, View} from 'react-native' export function App() { return ( - + Wallet ) diff --git a/apps/wallet/__tests__/App.test.tsx b/apps/wallet/__tests__/App.test.tsx deleted file mode 100644 index 9eac6fbc87..0000000000 --- a/apps/wallet/__tests__/App.test.tsx +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @format - */ - -import 'react-native'; -import React from 'react'; -import App from '../App'; - -// Note: import explicitly to use the types shipped with jest. -import {it} from '@jest/globals'; - -// Note: test renderer must be required after react-native. -import renderer from 'react-test-renderer'; - -it('renders correctly', () => { - renderer.create(); -}); diff --git a/apps/wallet/package.json b/apps/wallet/package.json index f8df432c7a..9301a9f2f2 100644 --- a/apps/wallet/package.json +++ b/apps/wallet/package.json @@ -4,6 +4,7 @@ "private": true, "scripts": { "pod-install": "cd ios && RCT_NEW_ARCH_ENABLED=1 bundle exec pod install", + "build": "yarn lint", "android": "react-native run-android", "ios": "react-native run-ios", "lint": "eslint .",