Skip to content

Commit

Permalink
Merge branch 'main' into parcheesime-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
glenflorendo committed Apr 6, 2024
2 parents e4015bf + ebc6aa4 commit ffdc37d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*-lock.*
.pnpm-store
build
coverage
data
dist
node_modules
package.*
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"main": "index.js",
"scripts": {
"build": "pnpm nx run-many --target=build --output-style=stream --all",
"ci:format": "pnpm dlx prettier --check --ignore-unknown '**/*.{css,js,json,jsx,md,ts,tsx,yaml}'",
"ci:lint": "pnpm dlx eslint --fix-dry-run '**/*.{js,jsx,ts,tsx}'",
"ci:format": "prettier --check --ignore-unknown '**/*.{css,js,json,jsx,md,ts,tsx,yaml}'",
"ci:lint": "eslint --fix-dry-run '**/*.{js,jsx,ts,tsx}'",
"clean": "rm -rf dist node_modules && pnpm --recursive --parallel exec rm -rf dist node_modules",
"dev": "pnpm nx run-many --target=dev --output-style=stream --all",
"graph": "pnpm nx graph",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/components/calendar/calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export default function Calendar({ initDate = new Date(), onSelectValueChange }:
return (
<td
key={key}
data-testid={key}
onClick={() => handleSelected(ele as CalendarDate)}
className={clsx(
"h-8 w-8 text-center text-xs font-normal leading-[18.8px]",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/date-input/date-input.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe("Date Input", () => {
expect(monthOptions).toHaveTextContent(month);
expect(yearOptions).toHaveTextContent(year);

expect(screen.getByText(day).getAttribute("class")).toContain("rounded-full");
expect(screen.getByTestId(`${today.getMonth()}/${day}/${year}`).getAttribute("class")).toContain("rounded-full");
});

test("date input value updates when date is selected in Calendar", async () => {
Expand Down

0 comments on commit ffdc37d

Please sign in to comment.