Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump eslint-plugin-mocha to ^10.3.0 #110

Merged
merged 2 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-material-ui": "workspace:^",
"eslint-plugin-mocha": "^10.2.0",
"eslint-plugin-mocha": "^10.3.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"fast-glob": "^3.3.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ describe('useAutocomplete', () => {
let filterOptions;
let getOptionLabel;
let options;

beforeEach(() => {
filterOptions = createFilterOptions({ matchFrom: 'any' });
getOptionLabel = (option) => option.name;
Expand Down
1 change: 1 addition & 0 deletions packages/mui-base/src/useInput/useInput.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { UseInputParameters } from './useInput.types';

describe('useInput', () => {
const { render } = createRenderer();

describe('params: inputRef', () => {
it('should be able to attach input ref passed through params', () => {
const inputRef = React.createRef<HTMLInputElement>();
Expand Down
1 change: 1 addition & 0 deletions packages/mui-base/src/useList/listReducer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,7 @@ describe('listReducer', () => {

describe('using custom item comparer', () => {
type ItemType = { v: string };

it('keeps the highlighted value if it is present among the new items', () => {
const state: ListState<ItemType> = {
highlightedValue: { v: '1' },
Expand Down
1 change: 1 addition & 0 deletions packages/mui-base/src/useList/useList.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { useList } from './useList';

describe('useList', () => {
const { render } = createRenderer();

describe('preventing default behavior on keyDown', () => {
['ArrowUp', 'ArrowDown', 'Home', 'End', 'PageUp', 'PageDown', 'Enter', ' '].forEach((key) =>
it(`prevents default behavior when ${key} is pressed in activeDescendant focus management mode`, () => {
Expand Down
1 change: 1 addition & 0 deletions packages/mui-base/src/useMenu/useMenu.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { useMenu } from './useMenu';

describe('useMenu', () => {
const { render } = createRenderer();

describe('getListboxProps', () => {
it('returns props for root slot', () => {
function TestMenu() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const testContext: DropdownContextValue = {

describe('useMenuButton', () => {
const { render } = createRenderer();

describe('getRootProps', () => {
it('returns props for root slot', () => {
function TestMenuButton() {
Expand Down
1 change: 1 addition & 0 deletions packages/mui-base/src/useMenuItem/useMenuItem.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { useMenuItem } from './useMenuItem';

describe('useMenuItem', () => {
const { render } = createRenderer();

describe('getRootProps', () => {
it('returns props for root slot', () => {
function TestMenuItem() {
Expand Down
1 change: 1 addition & 0 deletions packages/mui-base/src/useSlider/useSlider.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { useSlider } from './useSlider';

describe('useSlider', () => {
const { render } = createRenderer();

describe('getRootProps', () => {
it('forwards external props including event handlers', () => {
const rootRef = React.createRef();
Expand Down
1 change: 1 addition & 0 deletions packages/mui-base/src/useTab/useTab.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { useTab } from './useTab';

describe('useTab', () => {
const { render } = createRenderer();

describe('getRootProps', () => {
it('returns props for root slot', () => {
function TestTab() {
Expand Down
1 change: 1 addition & 0 deletions packages/mui-base/src/useTabPanel/useTabPanel.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { useTabPanel } from './useTabPanel';

describe('useTabPanel', () => {
const { render } = createRenderer();

describe('getRootProps', () => {
it('returns props for root slot', () => {
const rootRef = React.createRef();
Expand Down
1 change: 1 addition & 0 deletions packages/mui-base/src/useTabsList/useTabsList.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { useTabsList } from './useTabsList';

describe('useTabsList', () => {
const { render } = createRenderer();

describe('getRootProps', () => {
it('returns props for root slot', () => {
function TestTabsList() {
Expand Down
1 change: 1 addition & 0 deletions packages/mui-base/src/utils/prepareForSlot.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { prepareForSlot } from './prepareForSlot';

describe('prepareForSlot', () => {
const { render } = createRenderer();

it('should not warn about ownerState', () => {
const ThirdPartyComponent = React.forwardRef<HTMLButtonElement>((props, ref) => {
// @ts-ignore just double checking that it is not defined
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

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

Loading