Skip to content
Merged
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
7 changes: 7 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@ module.exports = {
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|immer|zustand)',
],
testMatch: [
'<rootDir>/src/**/__tests__/**/*.test.{ts,tsx}',
'<rootDir>/packages/state/src/__tests__/**/*.test.{ts,tsx}',
],
// Exclude packages with their own jest config (e.g., agent-intelligence uses ts-jest)
testPathIgnorePatterns: ['/node_modules/', '/packages/agent-intelligence/'],
collectCoverageFrom: [
'src/**/*.{ts,tsx}',
'app/**/*.{ts,tsx}',
'packages/state/src/**/*.{ts,tsx}',
'!src/**/*.d.ts',
'!src/types/**/*',
'!**/__tests__/**/*',
Expand Down
1 change: 1 addition & 0 deletions packages/agent-intelligence/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"dependencies": {
"@anthropic-ai/sdk": "^0.32.0",
"@thumbcode/state": "workspace:*",
"@thumbcode/types": "workspace:*",
"openai": "^4.73.0",
"react": "18.3.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { styled } from 'nativewind';
import { Text, View } from 'react-native';
import type { Message } from '../../stores/chatStore';
import type { Message } from '@thumbcode/state';

const StyledView = styled(View);
const StyledText = styled(Text);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { styled } from 'nativewind';
import { useState } from 'react';
import { Text, TextInput, TouchableOpacity, View } from 'react-native';
import { useChatStore } from '../../stores/chatStore';
import { useChatStore } from '@thumbcode/state';

const StyledView = styled(View);
const StyledTextInput = styled(TextInput);
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/services/credentials/CredentialService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
* - Secure deletion with memory clearing
*/

import { useCredentialStore } from '@thumbcode/state';
import * as LocalAuthentication from 'expo-local-authentication';
import * as SecureStore from 'expo-secure-store';
import { useCredentialStore } from '@/stores';
import type { Credential, CredentialType } from '@/types';

// SecureStore key prefixes for different credential types
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* since actual hardware-backed storage is not available in Jest.
*/

import { useCredentialStore } from '@thumbcode/state';
import * as LocalAuthentication from 'expo-local-authentication';
import * as SecureStore from 'expo-secure-store';
import { useCredentialStore } from '@/stores';
import { CredentialService } from '../CredentialService';

// Mock SecureStore
Expand Down
204 changes: 0 additions & 204 deletions src/stores/agentStore.ts

This file was deleted.

Loading