Skip to content

Commit

Permalink
Fix mock user location import
Browse files Browse the repository at this point in the history
  • Loading branch information
jtklein committed Jun 17, 2024
1 parent fba58dd commit eee42a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/providers/ExploreContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
import { t } from "i18next";
import * as React from "react";
import { LatLng } from "react-native-maps";
import fetchUserLocation from "sharedHelpers/fetchUserLocation.ts";

// Importing this as "sharedHelpers/fetchUserLocation.ts" breaks e2e mock import
import fetchUserLocation from "../sharedHelpers/fetchUserLocation";

export enum EXPLORE_ACTION {
CHANGE_SORT_BY = "CHANGE_SORT_BY",
Expand Down
4 changes: 3 additions & 1 deletion src/sharedHooks/useCurrentObservationLocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import {
useState
} from "react";
import { checkMultiple, RESULTS } from "react-native-permissions";
import fetchUserLocation from "sharedHelpers/fetchUserLocation.ts";

// Importing this as "sharedHelpers/fetchUserLocation.ts" breaks e2e mock import
import fetchUserLocation from "../sharedHelpers/fetchUserLocation";

const INITIAL_POSITIONAL_ACCURACY = 99999;
const TARGET_POSITIONAL_ACCURACY = 10;
Expand Down

0 comments on commit eee42a9

Please sign in to comment.