Files
colanode/apps/mobile/jest.config.js
Ylber Gashi 96bb8c25c6 Mobile: fix validation toolchain and add test coverage for utility modules (#355)
Fix lint errors (import ordering), resolve FileReadStream type mismatch
for mobile's Blob-based readStream, move tests from src/__tests__ to
top-level test/ directory matching web/server conventions, and add tests
for emoji, message, node, radar utils plus an in-memory error log for
debugging experimental builds.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 11:19:41 +01:00

12 lines
449 B
JavaScript

/** @type {import('jest').Config} */
module.exports = {
preset: 'jest-expo',
testMatch: ['<rootDir>/test/**/*.test.ts', '<rootDir>/test/**/*.test.tsx'],
moduleNameMapper: {
'^@colanode/mobile/(.*)$': '<rootDir>/src/$1',
'^@colanode/core/(.*)$': '<rootDir>/../../packages/core/src/$1',
'^@colanode/crdt/(.*)$': '<rootDir>/../../packages/crdt/src/$1',
'^@colanode/client/(.*)$': '<rootDir>/../../packages/client/src/$1',
},
};