Skip to content

Commit 5b8c989

Browse files
committed
Fixed issue with tests failing to run correctly
1 parent 2cbc703 commit 5b8c989

File tree

5 files changed

+31
-20
lines changed

5 files changed

+31
-20
lines changed

jest.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ module.exports = {
33
testEnvironment: "jsdom",
44
moduleDirectories: ["node_modules", "src"],
55
moduleNameMapper: {
6-
".(css|less|scss)$": "identity-obj-proxy",
7-
"components/(.*)": "<rootDir>/src/components/$1",
8-
"assets/(.*)": "<rootDir>/src/assets/$1",
6+
"\\.(css|less|scss)$": "identity-obj-proxy",
7+
"^components/(.*)$": "<rootDir>/src/components/$1",
8+
"^assets/(.*)$": "<rootDir>/src/assets/$1",
99
},
1010
transformIgnorePatterns: ["<rootDir>/node_modules/(?!react-dnd|dnd-core|@react-dnd)"],
1111
};

pnpm-lock.yaml

Lines changed: 25 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/input-elements/Calendar/Calendar.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
"use client";
22
import React from "react";
3-
import {
4-
DayPicker,
5-
useDayPicker,
6-
type PropsSingle,
7-
type PropsRange,
8-
type PropsBase,
9-
} from "react-day-picker";
3+
import { DayPicker, useDayPicker, PropsSingle, PropsRange, PropsBase } from "react-day-picker";
104

115
import {
126
ArrowLeftHeadIcon,

src/components/input-elements/DatePicker/DatePicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { enUS } from "date-fns/locale";
77

88
import { Popover, PopoverButton, PopoverPanel, Transition } from "@headlessui/react";
99
import { CalendarIcon, XCircleIcon } from "assets";
10-
import { Calendar, type DayPickerSingleProps } from "components/input-elements/Calendar";
10+
import { Calendar, DayPickerSingleProps } from "components/input-elements/Calendar";
1111
import { makeDatePickerClassName } from "components/input-elements/DatePicker/datePickerUtils";
1212
import { useInternalState } from "hooks";
1313
import { Color } from "../../../lib/inputTypes";

src/components/input-elements/DateRangePicker/DateRangePicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
parseStartDate,
2020
} from "./dateRangePickerUtils";
2121

22-
import { Calendar, type DayPickerRangeProps } from "components/input-elements/Calendar";
22+
import { Calendar, DayPickerRangeProps } from "components/input-elements/Calendar";
2323
import { DateRangePickerItemProps } from "components/input-elements/DateRangePicker/DateRangePickerItem";
2424
import { SelectItem } from "components/input-elements/Select";
2525
import { enUS } from "date-fns/locale";

0 commit comments

Comments
 (0)