Automatically organize imports

This commit is contained in:
2024-02-03 20:30:00 -07:00
parent 2276605e6d
commit bfd96d9ccc
25 changed files with 71 additions and 67 deletions

View File

@@ -1,5 +1,5 @@
import React from "react";
import { render } from "@testing-library/react-native";
import React from "react";
import BarGraph from "../../component/charts/bar-graph/bar-graph";
import { graph_data_two_measures } from "../../mock/charts/mock-data";

View File

@@ -1,6 +1,6 @@
import React from "react";
import { render } from "@testing-library/react-native";
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";

View File

@@ -1,7 +1,7 @@
import "@testing-library/jest-native/extend-expect";
import { render } from "@testing-library/react-native";
import React from "react";
import { Text } from "react-native";
import { render } from "@testing-library/react-native";
import "@testing-library/jest-native/extend-expect";
import ChartView from "../../component/charts/chart-view";

View File

@@ -1,13 +1,13 @@
import React from "react";
import { render } from "@testing-library/react-native";
import "@testing-library/jest-native/extend-expect";
import { render } from "@testing-library/react-native";
import * as scale from "d3-scale";
import React from "react";
import { CustomBars } from "../../component/charts/custom-bars";
import {
calculateBarOrigin,
drawBarPath,
} from "../../component/charts/custom-bar-utils";
import { CustomBars } from "../../component/charts/custom-bars";
const mockYScaleFunction = scale.scaleLinear();
const mockXScaleFunction = scale.scaleBand();

View File

@@ -1,5 +1,5 @@
import React from "react";
import { render } from "@testing-library/react-native";
import React from "react";
import LineGraph from "../../component/charts/line-graph/line-graph";
import { line_chart_two_y_data } from "../../mock/charts/mock-data";

View File

@@ -1,6 +1,6 @@
import { renderHook } from "@testing-library/react-native";
import { useGraphData } from "../../component/charts/use-graph-data";
import { GraphData, GraphProps } from "../../component/charts/graph-types";
import { useGraphData } from "../../component/charts/use-graph-data";
describe("useGraphData", () => {
it("should return correctly processed data from convertToGraphData", () => {

View File

@@ -1,9 +1,9 @@
import React from "react";
import { render, cleanup, waitFor } from "@testing-library/react-native";
import "@testing-library/jest-native/extend-expect";
import { gql, useQuery } from "@apollo/client";
import withQueryHandling from "../../component/with-query-handling";
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";
jest.mock("@apollo/client", () => ({
...jest.requireActual("@apollo/client"),