move folders etc, need to solve app import issue
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { render } from "@testing-library/react-native";
|
||||
import React from "react";
|
||||
import BarGraph from "../../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";
|
||||
|
||||
describe("BarGraph Component Tests", () => {
|
||||
|
@@ -2,7 +2,7 @@ import "@testing-library/jest-native/extend-expect";
|
||||
import { render } from "@testing-library/react-native";
|
||||
import React from "react";
|
||||
|
||||
import ChartLabel from "../../component/charts/chart-label/chart-label";
|
||||
import ChartLabel from "../../src/component/charts/chart-label/chart-label";
|
||||
|
||||
describe("ChartLabel Component Tests", () => {
|
||||
const mockData = {
|
||||
|
@@ -3,7 +3,7 @@ import { render } from "@testing-library/react-native";
|
||||
import React from "react";
|
||||
import { Text } from "react-native";
|
||||
|
||||
import ChartView from "../../component/charts/chart-view";
|
||||
import ChartView from "../../src/component/charts/chart-view";
|
||||
|
||||
describe("ChartView Component Tests", () => {
|
||||
it("applies the passed style prop correctly", () => {
|
||||
|
@@ -6,8 +6,8 @@ import React from "react";
|
||||
import {
|
||||
calculateBarOrigin,
|
||||
drawBarPath,
|
||||
} from "../../component/charts/custom-bar-utils";
|
||||
import { CustomBars } from "../../component/charts/custom-bars";
|
||||
} from "../../src/component/charts/custom-bar-utils";
|
||||
import { CustomBars } from "../../src/component/charts/custom-bars";
|
||||
|
||||
const mockYScaleFunction = scale.scaleLinear();
|
||||
const mockXScaleFunction = scale.scaleBand();
|
||||
|
@@ -1,6 +1,6 @@
|
||||
import { render } from "@testing-library/react-native";
|
||||
import React from "react";
|
||||
import LineGraph from "../../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";
|
||||
|
||||
describe("LineGraph Component Tests", () => {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
import { renderHook } from "@testing-library/react-native";
|
||||
import { GraphData, GraphProps } from "../../component/charts/graph-types";
|
||||
import { useGraphData } from "../../component/charts/use-graph-data";
|
||||
import { GraphData, GraphProps } from "../../src/component/charts/graph-types";
|
||||
import { useGraphData } from "../../src/component/charts/use-graph-data";
|
||||
|
||||
describe("useGraphData", () => {
|
||||
it("should return correctly processed data from convertToGraphData", () => {
|
||||
|
@@ -3,7 +3,7 @@ import "@testing-library/jest-native/extend-expect";
|
||||
import { cleanup, render, waitFor } from "@testing-library/react-native";
|
||||
import React from "react";
|
||||
import { Text } from "react-native";
|
||||
import withQueryHandling from "../../component/with-query-handling";
|
||||
import withQueryHandling from "../../src/component/with-query-handling";
|
||||
|
||||
jest.mock("@apollo/client", () => ({
|
||||
...jest.requireActual("@apollo/client"),
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { createAndFilter, createRangeFilter } from "../../graphql/filter";
|
||||
import { createAndFilter, createRangeFilter } from "../../src/graphql/filter";
|
||||
|
||||
describe("create filterInput", () => {
|
||||
it("should create a filter input with the correct structure", () => {
|
||||
|
Reference in New Issue
Block a user