Skip to content

Commit 9dbd966

Browse files
fix(deps): update dependencies to latest minor (#753)
fix(deps): update dependencies to latest minor
1 parent 52e5fed commit 9dbd966

7 files changed

+642
-376
lines changed

lib/create-testing-library-rule/detect-testing-library-utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ type IsCustomQueryFn = (node: TSESTree.Identifier) => boolean;
6969
type IsBuiltInQueryFn = (node: TSESTree.Identifier) => boolean;
7070
type IsAsyncUtilFn = (
7171
node: TSESTree.Identifier,
72-
validNames?: readonly typeof ASYNC_UTILS[number][]
72+
validNames?: readonly (typeof ASYNC_UTILS)[number][]
7373
) => boolean;
7474
type IsFireEventMethodFn = (node: TSESTree.Identifier) => boolean;
7575
type IsUserEventMethodFn = (node: TSESTree.Identifier) => boolean;
@@ -82,7 +82,7 @@ type IsRenderVariableDeclaratorFn = (
8282
) => boolean;
8383
type IsDebugUtilFn = (
8484
identifierNode: TSESTree.Identifier,
85-
validNames?: ReadonlyArray<typeof DEBUG_UTILS[number]>
85+
validNames?: ReadonlyArray<(typeof DEBUG_UTILS)[number]>
8686
) => boolean;
8787
type IsPresenceAssertFn = (node: TSESTree.MemberExpression) => boolean;
8888
type IsAbsenceAssertFn = (node: TSESTree.MemberExpression) => boolean;

lib/rules/no-await-sync-events.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const VALID_EVENT_MODULES = ['fire-event', 'user-event'] as const;
1515
export const RULE_NAME = 'no-await-sync-events';
1616
export type MessageIds = 'noAwaitSyncEvents';
1717
type Options = [
18-
{ eventModules?: readonly typeof VALID_EVENT_MODULES[number][] }
18+
{ eventModules?: readonly (typeof VALID_EVENT_MODULES)[number][] }
1919
];
2020

2121
export default createTestingLibraryRule<Options, MessageIds>({

lib/rules/no-debugging-utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
import { DEBUG_UTILS } from '../utils';
1515

1616
type DebugUtilsToCheckFor = Partial<
17-
Record<typeof DEBUG_UTILS[number], boolean>
17+
Record<(typeof DEBUG_UTILS)[number], boolean>
1818
>;
1919

2020
export const RULE_NAME = 'no-debugging-utils';
@@ -153,7 +153,7 @@ export default createTestingLibraryRule<Options, MessageIds>({
153153

154154
const isDebugUtil = helpers.isDebugUtil(
155155
callExpressionIdentifier,
156-
utilsToReport as Array<typeof DEBUG_UTILS[number]>
156+
utilsToReport as Array<(typeof DEBUG_UTILS)[number]>
157157
);
158158
const isDeclaredDebugVariable = suspiciousDebugVariableNames.includes(
159159
callExpressionIdentifier.name

lib/rules/prefer-user-event.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const UserEventMethods = [
2525
'unhover',
2626
'paste',
2727
] as const;
28-
type UserEventMethodsType = typeof UserEventMethods[number];
28+
type UserEventMethodsType = (typeof UserEventMethods)[number];
2929

3030
// maps fireEvent methods to userEvent. Those not found here, do not have an equivalent (yet)
3131
export const MAPPING_TO_USER_EVENT: Record<string, UserEventMethodsType[]> = {

lib/utils/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ export const SUPPORTED_TESTING_FRAMEWORKS = [
3333
'marko',
3434
] as const;
3535
export type SupportedTestingFramework =
36-
typeof SUPPORTED_TESTING_FRAMEWORKS[number];
36+
(typeof SUPPORTED_TESTING_FRAMEWORKS)[number];

0 commit comments

Comments
 (0)