diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 00000000..6e76dbec --- /dev/null +++ b/.eslintignore @@ -0,0 +1,8 @@ +*-lock.* +.pnpm-store +build +coverage +data +dist +node_modules +package.* diff --git a/.github/workflows/compliance.yaml b/.github/workflows/compliance.yaml new file mode 100644 index 00000000..d0fcc8d6 --- /dev/null +++ b/.github/workflows/compliance.yaml @@ -0,0 +1,63 @@ +name: Compliance + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + - reopened + - unassigned + +jobs: + check-for-linked-issue: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Check for keyword and issue number + id: check-for-keyword + uses: actions/github-script@v7 + with: + script: | + // Retrieve body of context.payload and search for GitHub keywords + const prBody = context.payload.pull_request.body; + const prNumber = context.payload.pull_request.number; + const prOwner = context.payload.pull_request.user.login; + const regex = /(? handleSelected(ele as CalendarDate)} className={clsx( "h-8 w-8 text-center text-xs font-normal leading-[18.8px]", diff --git a/packages/ui/src/components/date-input/date-input.test.tsx b/packages/ui/src/components/date-input/date-input.test.tsx index 9a660be8..affd3b7a 100644 --- a/packages/ui/src/components/date-input/date-input.test.tsx +++ b/packages/ui/src/components/date-input/date-input.test.tsx @@ -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 () => {