Skip to content

Commit

Permalink
Review update
Browse files Browse the repository at this point in the history
  • Loading branch information
jmainguytalend committed Nov 27, 2023
1 parent 441bedf commit 8ae32c2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packages/a11y/src/Gesture/preventScroll.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { render, screen } from '@testing-library/react';
import { preventScroll } from './preventScroll';
import userEvent from '@testing-library/user-event';

import { preventScroll } from './preventScroll';

describe('preventScroll', () => {
it('Prevent arrow keys', async () => {
const user = userEvent.setup();
Expand Down
3 changes: 2 additions & 1 deletion packages/a11y/src/Gesture/withMonthCalendarGesture.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { withMonthCalendarGesture } from './withMonthCalendarGesture';

import MonthCalendar from '../__mocks__/month-calendar';
import { withMonthCalendarGesture } from './withMonthCalendarGesture';

/**
* Mock on a 3-month sets of months
Expand Down
3 changes: 1 addition & 2 deletions packages/a11y/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"allowJs": false,
"declaration": true,
"target": "ES5",
"module": "CommonJs",
"types": ["jest", "@testing-library/jest-dom"]
"module": "CommonJs"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/* eslint-disable jsx-a11y/no-static-element-interactions */
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import Tile from './Tile.component';

import { TileContext, TileContextType } from './context';
import Tile from './Tile.component';

type TestComponentProps = {
context: TileContextType;
Expand Down

0 comments on commit 8ae32c2

Please sign in to comment.