mirror of
https://github.com/selfxyz/self.git
synced 2026-01-09 22:58:20 -05:00
address minor mobile app linting issues (#1331)
* address lint issues * different approach
This commit is contained in:
@@ -279,3 +279,4 @@ circuits/ptau/
|
||||
**/*.d.ts
|
||||
!**/types/*.d.ts
|
||||
!**/src/types/*.d.ts
|
||||
!**/global.d.ts
|
||||
|
||||
1
app/src/global.d.ts
vendored
1
app/src/global.d.ts
vendored
@@ -3,6 +3,7 @@
|
||||
// NOTE: Converts to Apache-2.0 on 2029-06-11 per LICENSE.
|
||||
|
||||
declare module '*.json' {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const value: any;
|
||||
export default value;
|
||||
}
|
||||
|
||||
@@ -9,10 +9,10 @@ import { render, screen, waitFor } from '@testing-library/react-native';
|
||||
import { WebViewScreen } from '@/screens/shared/WebViewScreen';
|
||||
|
||||
jest.mock('react-native-webview', () => {
|
||||
const React = require('react');
|
||||
const ReactModule = require('react');
|
||||
const { View } = require('react-native');
|
||||
const MockWebView = React.forwardRef((props: any, _ref) => {
|
||||
return React.createElement(View, { testID: 'webview', ...props });
|
||||
const MockWebView = ReactModule.forwardRef((props: any, _ref) => {
|
||||
return ReactModule.createElement(View, { testID: 'webview', ...props });
|
||||
});
|
||||
MockWebView.displayName = 'MockWebView';
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user