mvoe mock, fix imports
This commit is contained in:
parent
b5ca868050
commit
af28d5c65b
@ -1,6 +1,6 @@
|
||||
import React, { useEffect } from "react";
|
||||
import { ClientProvider, useAuthHeader } from "./graphql/client";
|
||||
import AppNavigator from "./navigation/app-navigator";
|
||||
import { ClientProvider, useAuthHeader } from "./src/graphql/client";
|
||||
import AppNavigator from "./src/navigation/app-navigator";
|
||||
|
||||
import { DEV_USER_ID } from "@env";
|
||||
import AsyncStorage from "@react-native-async-storage/async-storage";
|
2
index.js
2
index.js
@ -1,6 +1,6 @@
|
||||
import { registerRootComponent } from "expo";
|
||||
|
||||
import App from "./src/App";
|
||||
import App from "./App";
|
||||
|
||||
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
|
||||
// It also ensures that whether you load the app in Expo Go or in a native build,
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React from "react";
|
||||
import { StyleSheet, View } from "react-native";
|
||||
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
|
||||
// BarGraph component using mocked data currently
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { render } from "@testing-library/react-native";
|
||||
import React from "react";
|
||||
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", () => {
|
||||
it("renders correctly with data", () => {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { render } from "@testing-library/react-native";
|
||||
import React from "react";
|
||||
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", () => {
|
||||
it("renders correctly with data", () => {
|
||||
|
Loading…
Reference in New Issue
Block a user