wip - claude --resume 742969c2-ab50-4a79-b7bd-3971e9fd314d

This commit is contained in:
Samuel Newman
2026-05-15 21:58:48 +03:00
parent f04b350f05
commit 1c60734e84
40 changed files with 1209 additions and 1571 deletions
+7 -6
View File
@@ -1,5 +1,6 @@
import React, {type ReactNode} from 'react'
import {FlatList, Modal, ScrollView, TextInput, View} from 'react-native'
import {vi} from 'vitest'
const BottomSheetModalContext = React.createContext(null)
BottomSheetModalContext.displayName = 'BottomSheetModalContext'
@@ -33,12 +34,12 @@ const BottomSheetScrollView = (props: any) => <ScrollView {...props} />
const BottomSheetFlatList = (props: any) => <FlatList {...props} />
const BottomSheetTextInput = (props: any) => <TextInput {...props} />
const useBottomSheet = jest.fn()
const useBottomSheetModal = jest.fn()
const useBottomSheetSpringConfigs = jest.fn()
const useBottomSheetTimingConfigs = jest.fn()
const useBottomSheetInternal = jest.fn()
const useBottomSheetDynamicSnapPoints = jest.fn()
const useBottomSheet = vi.fn()
const useBottomSheetModal = vi.fn()
const useBottomSheetSpringConfigs = vi.fn()
const useBottomSheetTimingConfigs = vi.fn()
const useBottomSheetInternal = vi.fn()
const useBottomSheetDynamicSnapPoints = vi.fn()
export {useBottomSheet}
export {useBottomSheetModal}
+3 -1
View File
@@ -1 +1,3 @@
export const getLocales = jest.fn().mockResolvedValue([])
import {vi} from 'vitest'
export const getLocales = vi.fn().mockResolvedValue([])
+3 -1
View File
@@ -1,3 +1,5 @@
export const CID = jest.fn().mockImplementation(() => {
import {vi} from 'vitest'
export const CID = vi.fn().mockImplementation(() => {
return {}
})
+4 -2
View File
@@ -1,6 +1,8 @@
export const from = jest.fn().mockImplementation(() => {
import {vi} from 'vitest'
export const from = vi.fn().mockImplementation(() => {
return {
digest: jest.fn().mockImplementation(() => {
digest: vi.fn().mockImplementation(() => {
return Promise.resolve('')
}),
}
+4 -2
View File
@@ -1,3 +1,5 @@
jest.mock('sentry-expo', () => ({
init: () => jest.fn(),
import {vi} from 'vitest'
vi.mock('sentry-expo', () => ({
init: () => vi.fn(),
}))