Skip to content

Commit

Permalink
Bump eslint-plugin-mocha to ^10.3.0 (#110)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michał Dudak <[email protected]>
  • Loading branch information
renovate[bot] and michaldudak authored Feb 27, 2024
1 parent dfa0de0 commit 9600f02
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 5 deletions.
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
1 change: 1 addition & 0 deletions packages/mui-base/src/useMenuButton/useMenuButton.test.tsx
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.

0 comments on commit 9600f02

Please sign in to comment.