mvoe mock, fix imports

This commit is contained in:
Loewy 2024-02-06 15:08:19 -08:00
parent b5ca868050
commit af28d5c65b
6 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
import React, { useEffect } from "react"; import React, { useEffect } from "react";
import { ClientProvider, useAuthHeader } from "./graphql/client"; import { ClientProvider, useAuthHeader } from "./src/graphql/client";
import AppNavigator from "./navigation/app-navigator"; import AppNavigator from "./src/navigation/app-navigator";
import { DEV_USER_ID } from "@env"; import { DEV_USER_ID } from "@env";
import AsyncStorage from "@react-native-async-storage/async-storage"; import AsyncStorage from "@react-native-async-storage/async-storage";

View File

@ -1,6 +1,6 @@
import { registerRootComponent } from "expo"; import { registerRootComponent } from "expo";
import App from "./src/App"; import App from "./App";
// registerRootComponent calls AppRegistry.registerComponent('main', () => App); // registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in Expo Go or in a native build, // It also ensures that whether you load the app in Expo Go or in a native build,

View File

@ -1,7 +1,7 @@
import React from "react"; import React from "react";
import { StyleSheet, View } from "react-native"; import { StyleSheet, View } from "react-native";
import BarGraph from "../component/charts/bar-graph/bar-graph"; import BarGraph from "../component/charts/bar-graph/bar-graph";
import { graph_data_two_measures } from "../../mock/charts/mock-data"; import { graph_data_two_measures } from "../../test/mock/charts/mock-data";
// Session Mock - can be used for session summary screen using a query handler component // Session Mock - can be used for session summary screen using a query handler component
// BarGraph component using mocked data currently // BarGraph component using mocked data currently

View File

@ -1,7 +1,7 @@
import { render } from "@testing-library/react-native"; import { render } from "@testing-library/react-native";
import React from "react"; import React from "react";
import BarGraph from "../../src/component/charts/bar-graph/bar-graph"; import BarGraph from "../../src/component/charts/bar-graph/bar-graph";
import { graph_data_two_measures } from "../../mock/charts/mock-data"; import { graph_data_two_measures } from "../mock/charts/mock-data";
describe("BarGraph Component Tests", () => { describe("BarGraph Component Tests", () => {
it("renders correctly with data", () => { it("renders correctly with data", () => {

View File

@ -1,7 +1,7 @@
import { render } from "@testing-library/react-native"; import { render } from "@testing-library/react-native";
import React from "react"; import React from "react";
import LineGraph from "../../src/component/charts/line-graph/line-graph"; import LineGraph from "../../src/component/charts/line-graph/line-graph";
import { line_chart_two_y_data } from "../../mock/charts/mock-data"; import { line_chart_two_y_data } from "../mock/charts/mock-data";
describe("LineGraph Component Tests", () => { describe("LineGraph Component Tests", () => {
it("renders correctly with data", () => { it("renders correctly with data", () => {