Skip to content

Commit

Permalink
chore: moving test helpers to the root of the monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
aversini committed Mar 10, 2024
1 parent fd6049b commit cb6aa43
Show file tree
Hide file tree
Showing 19 changed files with 17 additions and 45 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from "@testing-library/react";

import { expectToHaveClasses } from "../../../common/__tests__/helpers";
import { expectToHaveClasses } from "../../../../../../configuration/tests-helpers";
import { Anchor } from "../..";

describe("Anchor (exceptions)", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { act, fireEvent, render, screen } from "@testing-library/react";
import userEvent from "@testing-library/user-event";

import { expectToHaveClasses } from "../../../common/__tests__/helpers";
import { expectToHaveClasses } from "../../../../../../configuration/tests-helpers";
import { BUBBLE_CLASSNAME } from "../../../common/constants";
import { Bubble } from "../..";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { render, screen } from "@testing-library/react";
import userEvent from "@testing-library/user-event";

import { expectToHaveClasses } from "../../../common/__tests__/helpers";
import { expectToHaveClasses } from "../../../../../../configuration/tests-helpers";
import { BUTTON_CLASSNAME } from "../../../common/constants";
import { Button } from "../..";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { render, screen } from "@testing-library/react";
import { IconSettings } from "@versini/ui-icons";

import { expectToHaveClasses } from "../../../common/__tests__/helpers";
import { expectToHaveClasses } from "../../../../../../configuration/tests-helpers";
import { BUTTON_CLASSNAME } from "../../../common/constants";
import { ButtonIcon } from "../ButtonIcon";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from "@testing-library/react";

import { expectToHaveClasses } from "../../../common/__tests__/helpers";
import { expectToHaveClasses } from "../../../../../../configuration/tests-helpers";
import { ButtonLink } from "../..";

describe("ButtonLink (exceptions)", () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from "@testing-library/react";

import { expectToHaveClasses } from "../../../common/__tests__/helpers";
import { expectToHaveClasses } from "../../../../../../configuration/tests-helpers";
import { CARD_CLASSNAME } from "../../../common/constants";
import { Card } from "../..";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from "@testing-library/react";

import { expectToHaveClasses } from "../../../common/__tests__/helpers";
import { expectToHaveClasses } from "../../../../../../configuration/tests-helpers";
import { FOOTER_CLASSNAME } from "../../../common/constants";
import { Footer } from "../..";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from "@testing-library/react";

import { expectToHaveClasses } from "../../../common/__tests__/helpers";
import { expectToHaveClasses } from "../../../../../../configuration/tests-helpers";
import { HEADER_CLASSNAME } from "../../../common/constants";
import { Header } from "../..";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from "@testing-library/react";

import { expectToHaveClasses } from "../../../common/__tests__/helpers";
import { expectToHaveClasses } from "../../../../../../configuration/tests-helpers";
import { Main } from "../..";

describe("Main (exceptions)", () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from "@testing-library/react";

import { expectToHaveClasses } from "../../../common/__tests__/helpers";
import { expectToHaveClasses } from "../../../../../../configuration/tests-helpers";
import {
MESSAGEBOX_CLASSNAME,
PANEL_CLASSNAME,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from "@testing-library/react";

import { expectToHaveClasses } from "../../../common/__tests__/helpers";
import { expectToHaveClasses } from "../../../../../../configuration/tests-helpers";
import { PILL_CLASSNAME } from "../../../common/constants";
import { Pill } from "../..";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render, screen } from "@testing-library/react";

import { expectToHaveClasses } from "../../../common/__tests__/helpers";
import { expectToHaveClasses } from "../../../../../../configuration/tests-helpers";
import { SPINNER_CLASSNAME } from "../../../common/constants";
import { Spinner } from "../..";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { render, screen } from "@testing-library/react";
import {
expectToHaveClasses,
expectToHaveStyles,
} from "../../../common/__tests__/helpers";
} from "../../../../../../configuration/tests-helpers";
import { Table, TableBody, TableCell, TableHead, TableRow } from "../..";

describe("Table (exceptions)", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { act, render, screen, waitFor } from "@testing-library/react";
import userEvent from "@testing-library/user-event";

import { expectToHaveClasses } from "../../../common/__tests__/helpers";
import { expectToHaveClasses } from "../../../../../../configuration/tests-helpers";
import {
TEXT_AREA_CLASSNAME,
TEXT_AREA_CONTROL_RIGHT_CLASSNAME,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { act, render, screen } from "@testing-library/react";
import userEvent from "@testing-library/user-event";

import { expectToHaveClasses } from "../../../common/__tests__/helpers";
import { expectToHaveClasses } from "../../../../../../configuration/tests-helpers";
import { TEXT_INPUT_CLASSNAME } from "../../../common/constants";
import { TextInput } from "../..";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { act, fireEvent, render, screen } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import { IconHide } from "@versini/ui-icons";

import { expectToHaveClasses } from "../../../common/__tests__/helpers";
import { expectToHaveClasses } from "../../../../../../configuration/tests-helpers";
import { ButtonIcon, TextInputMask } from "../..";

function renderWithUserEvent(jsx: JSX.Element) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { fireEvent, render, screen } from "@testing-library/react";

import { expectToHaveClasses } from "../../../common/__tests__/helpers";
import { expectToHaveClasses } from "../../../../../../configuration/tests-helpers";
import { Toggle } from "../..";

describe("Toggle (exceptions)", () => {
Expand Down
28 changes: 0 additions & 28 deletions packages/ui-private/src/common/__tests__/helpers.ts

This file was deleted.

0 comments on commit cb6aa43

Please sign in to comment.