Minor app fixes two point nine rd2 (#1462)

* better tests

* lockfile naming fixes

* format

* fix ci issues
This commit is contained in:
Justin Hernandez
2025-12-02 22:20:17 -08:00
committed by GitHub
parent 569c606776
commit 64ab5fc91c
10 changed files with 25 additions and 7 deletions

View File

@@ -5,6 +5,11 @@
/* global jest */
/** @jest-environment jsdom */
// Set up Buffer globally for tests that need it
const { Buffer } = require('buffer');
global.Buffer = Buffer;
// Mock React Native PixelRatio globally before anything else loads
const mockPixelRatio = {
get: jest.fn(() => 2),

View File

@@ -5,3 +5,6 @@
import { pointsApiBaseUrl } from '@/consts/links';
export const POINTS_API_BASE_URL = pointsApiBaseUrl;
export const POINTS_TOKEN_CONTRACT_ADDRESS =
'0xfa6279293dfa5b38486ee179e4ddf6806c517a49'; // gitleaks:allow

View File

@@ -8,7 +8,10 @@ import { SelfAppBuilder } from '@selfxyz/common/utils/appType';
import { selfLogoReverseUrl } from '@/consts/links';
import { getOrGeneratePointsAddress } from '@/providers/authProvider';
import { POINTS_API_BASE_URL } from '@/services/points/constants';
import {
POINTS_API_BASE_URL,
POINTS_TOKEN_CONTRACT_ADDRESS,
} from '@/services/points/constants';
import type { IncomingPoints } from '@/services/points/types';
export type WhitelistedContract = {