Skip to content

Commit

Permalink
fix(deps): update dependencies to latest minor (#753)
Browse files Browse the repository at this point in the history
fix(deps): update dependencies to latest minor
  • Loading branch information
MichaelDeBoey committed Apr 12, 2023
1 parent 52e5fed commit 9dbd966
Show file tree
Hide file tree
Showing 7 changed files with 642 additions and 376 deletions.
Expand Up @@ -69,7 +69,7 @@ type IsCustomQueryFn = (node: TSESTree.Identifier) => boolean;
type IsBuiltInQueryFn = (node: TSESTree.Identifier) => boolean;
type IsAsyncUtilFn = (
node: TSESTree.Identifier,
validNames?: readonly typeof ASYNC_UTILS[number][]
validNames?: readonly (typeof ASYNC_UTILS)[number][]
) => boolean;
type IsFireEventMethodFn = (node: TSESTree.Identifier) => boolean;
type IsUserEventMethodFn = (node: TSESTree.Identifier) => boolean;
Expand All @@ -82,7 +82,7 @@ type IsRenderVariableDeclaratorFn = (
) => boolean;
type IsDebugUtilFn = (
identifierNode: TSESTree.Identifier,
validNames?: ReadonlyArray<typeof DEBUG_UTILS[number]>
validNames?: ReadonlyArray<(typeof DEBUG_UTILS)[number]>
) => boolean;
type IsPresenceAssertFn = (node: TSESTree.MemberExpression) => boolean;
type IsAbsenceAssertFn = (node: TSESTree.MemberExpression) => boolean;
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-await-sync-events.ts
Expand Up @@ -15,7 +15,7 @@ const VALID_EVENT_MODULES = ['fire-event', 'user-event'] as const;
export const RULE_NAME = 'no-await-sync-events';
export type MessageIds = 'noAwaitSyncEvents';
type Options = [
{ eventModules?: readonly typeof VALID_EVENT_MODULES[number][] }
{ eventModules?: readonly (typeof VALID_EVENT_MODULES)[number][] }
];

export default createTestingLibraryRule<Options, MessageIds>({
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/no-debugging-utils.ts
Expand Up @@ -14,7 +14,7 @@ import {
import { DEBUG_UTILS } from '../utils';

type DebugUtilsToCheckFor = Partial<
Record<typeof DEBUG_UTILS[number], boolean>
Record<(typeof DEBUG_UTILS)[number], boolean>
>;

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

const isDebugUtil = helpers.isDebugUtil(
callExpressionIdentifier,
utilsToReport as Array<typeof DEBUG_UTILS[number]>
utilsToReport as Array<(typeof DEBUG_UTILS)[number]>
);
const isDeclaredDebugVariable = suspiciousDebugVariableNames.includes(
callExpressionIdentifier.name
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/prefer-user-event.ts
Expand Up @@ -25,7 +25,7 @@ export const UserEventMethods = [
'unhover',
'paste',
] as const;
type UserEventMethodsType = typeof UserEventMethods[number];
type UserEventMethodsType = (typeof UserEventMethods)[number];

// maps fireEvent methods to userEvent. Those not found here, do not have an equivalent (yet)
export const MAPPING_TO_USER_EVENT: Record<string, UserEventMethodsType[]> = {
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/types.ts
Expand Up @@ -33,4 +33,4 @@ export const SUPPORTED_TESTING_FRAMEWORKS = [
'marko',
] as const;
export type SupportedTestingFramework =
typeof SUPPORTED_TESTING_FRAMEWORKS[number];
(typeof SUPPORTED_TESTING_FRAMEWORKS)[number];

0 comments on commit 9dbd966

Please sign in to comment.