Skip to content

Commit

Permalink
Use @test/ instead of relative path
Browse files Browse the repository at this point in the history
Signed-off-by: gpbl <[email protected]>
  • Loading branch information
gpbl committed Apr 21, 2024
1 parent 4471e66 commit 7671dba
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions src/components/Caption.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import {
getYearDropdown,
queryNextButton,
queryPrevButton
} from "../../test/selectors";
import { freezeBeforeAll } from "../../test/utils";
} from "@/test/selectors";
import { freezeBeforeAll } from "@/test/utils";

import { CustomComponents } from "../types/DayPickerBase";

Expand Down
8 changes: 4 additions & 4 deletions src/components/CaptionDropdowns.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import { screen } from "@testing-library/react";
import { setMonth, setYear } from "date-fns";
import { DayPickerProps } from "../DayPicker";

import { customRender } from "../../test/render";
import { customRender } from "@/test/render";
import {
getMonthDropdown,
getYearDropdown,
queryMonthDropdown,
queryYearDropdown
} from "../../test/selectors";
import { user } from "../../test/user";
import { freezeBeforeAll } from "../../test/utils";
} from "@/test/selectors";
import { user } from "@/test/user";
import { freezeBeforeAll } from "@/test/utils";

import { CaptionProps } from "./Caption";
import { CustomComponents } from "../types/DayPickerBase";
Expand Down
6 changes: 3 additions & 3 deletions src/components/CaptionLabel.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { customRender } from "../../test/render";
import { getMonthCaption } from "../../test/selectors";
import { freezeBeforeAll } from "../../test/utils";
import { customRender } from "@/test/render";
import { getMonthCaption } from "@/test/selectors";
import { freezeBeforeAll } from "@/test/utils";

import { CaptionLabel } from "./CaptionLabel";

Expand Down
8 changes: 4 additions & 4 deletions src/components/CaptionNavigation.test.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { addMonths } from "date-fns";
import { DayPickerProps } from "../DayPicker";

import { customRender } from "../../test/render";
import { customRender } from "@/test/render";
import {
getNextButton,
getPrevButton,
queryNextButton,
queryPrevButton
} from "../../test/selectors";
import { user } from "../../test/user";
import { freezeBeforeAll } from "../../test/utils";
} from "@/test/selectors";
import { user } from "@/test/user";
import { freezeBeforeAll } from "@/test/utils";

import { CaptionNavigation } from "./CaptionNavigation";

Expand Down
4 changes: 2 additions & 2 deletions src/components/DayContent.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { es } from "date-fns/locale";
import { DayPickerProps } from "../DayPicker";

import { customRender } from "../../test/render";
import { freezeBeforeAll } from "../../test/utils";
import { customRender } from "@/test/render";
import { freezeBeforeAll } from "@/test/utils";

import { DayContent, DayContentProps } from "./DayContent";

Expand Down
4 changes: 2 additions & 2 deletions src/components/Dropdown.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { fireEvent, screen } from "@testing-library/react";
import { DayPickerProps } from "../DayPicker";

import { customRender } from "../../test/render";
import { freezeBeforeAll } from "../../test/utils";
import { customRender } from "@/test/render";
import { freezeBeforeAll } from "@/test/utils";

import { Dropdown, DropdownProps } from "./Dropdown";
import { defaultClassNames } from "../contexts/DayPicker/defaultClassNames";
Expand Down
4 changes: 2 additions & 2 deletions src/components/Footer.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { customRender } from "../../test/render";
import { getTableFooter, queryTableFooter } from "../../test/selectors";
import { customRender } from "@/test/render";
import { getTableFooter, queryTableFooter } from "@/test/selectors";

import { Footer } from "./Footer";

Expand Down

0 comments on commit 7671dba

Please sign in to comment.