mirror of
https://github.com/luxfi/wallet.git
synced 2026-10-30 15:13:19 +00:00
Copies apps/extension, apps/mobile and 10 pkgs (wallet, ui, config, utilities, sessions, gating, notifications, analytics, eslint-config, prices) into a standalone pnpm workspace. Resolves merge conflict markers in extension and mobile package.json files, strips build artifacts (.wxt, .output, Pods).
28 lines
828 B
JavaScript
28 lines
828 B
JavaScript
const preset = require('../../config/jest-presets/jest/jest-preset')
|
|
|
|
module.exports = {
|
|
...preset,
|
|
testTimeout: 15000,
|
|
testEnvironmentOptions: {
|
|
...preset.testEnvironmentOptions,
|
|
customExportConditions: ['react-native'],
|
|
},
|
|
preset: 'jest-expo',
|
|
displayName: 'Mobile Wallet',
|
|
collectCoverageFrom: [
|
|
'src/**/*.{js,ts,tsx}',
|
|
'!src/test/**', // test helpers
|
|
'!src/**/*.stories.**',
|
|
'!**/node_modules/**',
|
|
],
|
|
coverageThreshold: {
|
|
global: {
|
|
lines: 0,
|
|
},
|
|
},
|
|
// Override moduleFileExtensions to NOT prioritize .web.ts for native tests
|
|
// This ensures mobile tests use moti animations from index.ts, not CSS from index.web.ts
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
|
setupFiles: ['../../config/jest-presets/jest/setup.js', './jest-setup.js'],
|
|
}
|