Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test
Signed-off-by: gpbl <[email protected]>
  • Loading branch information
gpbl committed Aug 17, 2025
commit acaa677772b7205577d58a6f0dba4f54165c4900
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@
"@types/node": "^24.3.0",
"@types/react": "^19.1.1",
"@types/react-dom": "^19.1.7",
"html-validate": "^10.0.0",
"jest": "^30.0.5",
"jest-environment-jsdom": "^30.0.5",
"jest-transform-css": "^6.0.3",
Expand Down
132 changes: 1 addition & 131 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 0 additions & 17 deletions src/DayPicker.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,23 +180,6 @@ test("should render the custom components", () => {
expect(screen.getByText("Custom MonthsDropdown")).toBeInTheDocument();
});

describe("when interactive", () => {
test("render a valid HTML", () => {
render(<DayPicker mode="single" />);
expect(document.body).toHTMLValidate({
rules: { "no-redundant-role": "off" }, // Redundant role is allowed for VoiceOver
});
});
});
describe("when not interactive", () => {
test("render a valid HTML", () => {
render(<DayPicker />);
expect(document.body).toHTMLValidate({
rules: { "no-redundant-role": "off" }, // Redundant role is allowed for VoiceOver
});
});
});

describe("when navLayout is set", () => {
const today = new Date(2024, 1, 4);
describe("when navLayout is set to 'around'", () => {
Expand Down
11 changes: 0 additions & 11 deletions test/setup.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
import { configure } from "@testing-library/dom";
import "@testing-library/jest-dom";
import "html-validate/jest";

import "./dateMatchers";

configure({
getElementError: (message, _container) => {
const error = new Error(message as string | undefined);
error.name = "TestingLibraryElementError";
error.stack = undefined;
return error;
},
});
Loading