MCPcopy Create free account

hub / github.com/jest-community/eslint-plugin-jest / functions

Functions395 in github.com/jest-community/eslint-plugin-jest

↓ 147 callersMethodrun
( ruleName: string, rule: TSESLint.RuleModule<TMessageIds, TOptions>, tests: TSESLint.RunTests<TMe
src/rules/__tests__/test-utils.ts:19
↓ 66 callersFunctiongetAccessorValue
( accessor: AccessorNode<S>, )
src/rules/utils/accessors.ts:160
↓ 50 callersFunctionparseJestFnCall
( node: TSESTree.CallExpression, context: TSESLint.RuleContext<string, unknown[]>, )
src/rules/utils/parseJestFnCall.ts:216
↓ 31 callersFunctionisSupportedAccessor
( node: TSESTree.Node, value?: V, )
src/rules/utils/accessors.ts:144
↓ 28 callersFunctionisTypeOfJestFnCall
( node: TSESTree.CallExpression, context: TSESLint.RuleContext<string, unknown[]>, types: JestFnType[],
src/rules/utils/parseJestFnCall.ts:21
↓ 24 callersFunctionexpectedParsedJestFnCallResultData
(result: TestParsedJestFnCall)
src/rules/utils/__tests__/parseJestFnCall.test.ts:96
↓ 19 callersFunctionexpectSuggestions
( output: (equalityMatcher: string) => string, )
src/rules/__tests__/prefer-equality-matcher.test.ts:21
↓ 18 callersFunctionwithFixtureFilename
( cases: T, )
src/rules/__tests__/test-utils.ts:123
↓ 15 callersFunctiona
()
src/rules/__tests__/fixtures/indent/indent-valid-fixture-1.js:174
↓ 15 callersFunctiona
()
src/rules/__tests__/fixtures/indent/indent-invalid-fixture-1.js:174
↓ 15 callersFunctionisFunction
(node: TSESTree.Node)
src/rules/utils/misc.ts:136
↓ 14 callersFunctionisIdentifier
( node: TSESTree.Node, name?: V, )
src/rules/utils/accessors.ts:115
↓ 13 callersFunctioncreateTokenTester
(tokenName: string)
src/rules/utils/padding.ts:86
↓ 13 callersFunctiongetNodeName
(node: TSESTree.Node)
src/rules/utils/misc.ts:114
↓ 13 callersFunctionisStringNode
( node: TSESTree.Node, specifics?: V, )
src/rules/utils/accessors.ts:74
↓ 13 callersFunctionrequireRule
(throwWhenRequiring: boolean)
src/rules/__tests__/test-utils.ts:143
↓ 12 callersFunctionc
()
src/rules/__tests__/fixtures/indent/indent-valid-fixture-1.js:158
↓ 12 callersFunctionc
()
src/rules/__tests__/fixtures/indent/indent-invalid-fixture-1.js:158
↓ 12 callersFunctiongenerateExportsSnapshotString
( lines: number, title: string = 'a big component 1', )
src/rules/__tests__/no-large-snapshots.test.ts:20
↓ 8 callersFunctioncreatePaddingRule
( name: string, description: string, configs: Config[], deprecated = false, )
src/rules/utils/padding.ts:336
↓ 8 callersFunctiongenerateExpectInlineSnapsCode
( lines: number, matcher: 'toMatchInlineSnapshot' | 'toThrowErrorMatchingInlineSnapshot', )
src/rules/__tests__/no-large-snapshots.test.ts:25
↓ 8 callersFunctionmakeNode
(line: number)
src/rules/utils/__tests__/ast-utils.test.ts:53
↓ 8 callersFunctionmakeToken
(line: number)
src/rules/utils/__tests__/ast-utils.test.ts:70
↓ 7 callersFunctiongenerateValidCases
( jestVersion: JestVersion | string | undefined, functionCall: string, )
src/rules/__tests__/no-deprecated-functions.test.ts:20
↓ 7 callersFunctiongetFirstMatcherArg
( expectFnCall: ParsedExpectFnCall, )
src/rules/utils/misc.ts:221
↓ 7 callersFunctiongetStringValue
(node: StringNode<S>)
src/rules/utils/accessors.ts:92
↓ 6 callersFunctiongenerateInvalidCases
( jestVersion: JestVersion | string | undefined, deprecation: string, replacement: string, )
src/rules/__tests__/no-deprecated-functions.test.ts:35
↓ 5 callersFunctioncreateOrAddLabelSafely
(name: string, color: string)
dangerfile.ts:9
↓ 5 callersFunctionreportPreferToBe
( context: TSESLint.RuleContext<MessageId, unknown[]>, whatToBe: ToBeWhat, expectFnCall: ParsedExpectFnC
src/rules/prefer-to-be.ts:62
↓ 5 callersFunctionrunDetectJestVersion
(cwd: string)
src/rules/utils/__tests__/detectJestVersion.test.ts:34
↓ 5 callersFunctionsetupFakeProject
(structure: ProjectStructure)
src/rules/utils/__tests__/detectJestVersion.test.ts:62
↓ 4 callersFunctioncompileMatcherPattern
( matcherMaybeWithMessage: MatcherAndMessage | string, )
src/rules/valid-title.ts:39
↓ 4 callersFunctioncreateFixerImports
( isModule: boolean, functionsToImport: Set<string>, )
src/rules/prefer-importing-jest-globals.ts:12
↓ 4 callersFunctioncreateRuleRequirerTester
( rulePath: string, depName: string, fixtureFilename: string, )
src/rules/__tests__/test-utils.ts:96
↓ 4 callersFunctiond
(a, b)
src/rules/__tests__/fixtures/indent/indent-valid-fixture-1.js:191
↓ 4 callersFunctiond
(a, b)
src/rules/__tests__/fixtures/indent/indent-invalid-fixture-1.js:191
↓ 4 callersFunctiondetectJestVersion
()
src/rules/utils/detectJestVersion.ts:25
↓ 4 callersFunctiongetFixturesRootDir
()
src/rules/__tests__/test-utils.ts:86
↓ 4 callersFunctionreplaceAccessorFixer
( fixer: TSESLint.RuleFixer, node: AccessorNode, text: string, )
src/rules/utils/misc.ts:161
↓ 4 callersFunctionresolveScope
( scope: TSESLint.Scope.Scope, identifier: string, )
src/rules/utils/parseJestFnCall.ts:538
↓ 4 callersFunctiontestComparisonOperator
( operator: string, preferredMatcher: string, preferredMatcherWhenNegated: string, )
src/rules/__tests__/prefer-comparison-matcher.test.ts:228
↓ 3 callersMethod_flatCompat
(config: T)
src/rules/__tests__/test-utils.ts:34
↓ 3 callersFunctioncreateFlatConfig
( rules: Record<string, TSESLint.Linter.RuleLevel>, )
src/index.ts:94
↓ 3 callersFunctioncreateRCConfig
(rules: Record<string, TSESLint.Linter.RuleLevel>)
src/index.ts:88
↓ 3 callersFunctionfindTopMostCallExpression
( node: TSESTree.CallExpression, )
src/rules/utils/misc.ts:191
↓ 3 callersFunctiongenerateInvalidCases
( matcher: 'toBeNull' | 'toBeUndefined' | 'toBeDefined', thing: 'null' | 'undefined', )
src/rules/__tests__/no-unnecessary-assertion.test.ts:166
↓ 3 callersFunctiongenerateSnapshotLines
(lines: number)
src/rules/__tests__/no-large-snapshots.test.ts:17
↓ 3 callersFunctiongenerateValidCases
( matcher: 'toBeNull' | 'toBeUndefined' | 'toBeDefined', thing: 'null' | 'undefined', )
src/rules/__tests__/no-unnecessary-assertion.test.ts:64
↓ 3 callersFunctiongetTestCallExpressionsFromDeclaredVariables
( declaredVariables: readonly TSESLint.Scope.Variable[], context: TSESLint.RuleContext<string, unknown[]>,
src/rules/utils/misc.ts:140
↓ 3 callersFunctionisBooleanLiteral
( node: TSESTree.Node, )
src/rules/utils/misc.ts:216
↓ 3 callersFunctionisPromiseChainCall
( node: TSESTree.Node, )
src/rules/valid-expect-in-promise.ts:24
↓ 3 callersFunctionparamsLocation
( params: TSESTree.CallExpressionArgument[] | TSESTree.Parameter[], )
src/rules/valid-describe-callback.ts:9
↓ 3 callersFunctionwithOnce
(name: string, addOnce: boolean)
src/rules/prefer-mock-promise-shorthand.ts:12
↓ 2 callersFunctionaddContainsMethodsClass
(code: string)
src/rules/__tests__/unbound-method.test.ts:245
↓ 2 callersFunctionbuildFixer
( callee: TSESTree.Expression, nodeName: string, preferredTestKeyword: TestCaseName.test | TestCas
src/rules/consistent-test-it.ts:14
↓ 2 callersFunctioncheck
(node: TSESTree.TSAsExpression | TSESTree.TSTypeAssertion)
src/rules/prefer-jest-mocked.ts:21
↓ 2 callersFunctioncheckBlockBody
(body: TSESTree.BlockStatement['body'])
src/rules/require-hook.ts:95
↓ 2 callersFunctioncheckExpectHasAssertions
( expectFnCall: ParsedExpectFnCall, func: TSESTree.CallExpression, )
src/rules/prefer-expect-assertions.ts:142
↓ 2 callersFunctioncompileMatcherPatterns
( matchers: | Partial<Record<MatcherGroups, string | MatcherAndMessage>> | MatcherAndMessage | s
src/rules/valid-title.ts:49
↓ 2 callersFunctioncreateTodoFixer
( jestFnCall: ParsedJestFnCall, fixer: TSESLint.RuleFixer, )
src/rules/prefer-todo.ts:27
↓ 2 callersFunctionfindFirstBlockBodyUp
( node: TSESTree.Node, )
src/rules/valid-expect-in-promise.ts:287
↓ 2 callersFunctionfindModuleName
( node: TSESTree.Literal | TSESTree.Node, )
src/rules/utils/misc.ts:233
↓ 2 callersFunctionfollowTypeAssertionChain
( expression: MaybeTypeCast<Expression>, )
src/rules/utils/followTypeAssertionChain.ts:31
↓ 2 callersFunctiongetBlockType
( statement: TSESTree.BlockStatement, context: TSESLint.RuleContext<string, unknown[]>, )
src/rules/no-standalone-expect.ts:16
↓ 2 callersFunctiongetOppositeTestKeyword
(test: TestCaseName.test | TestCaseName.it)
src/rules/consistent-test-it.ts:153
↓ 2 callersFunctionhasOnlyOneArgument
( call: TSESTree.CallExpression, )
src/rules/utils/misc.ts:74
↓ 2 callersFunctionisBuiltinSymbolLike
( program: ts.Program, type: ts.Type, symbolName: string, )
src/rules/utils/ts.ts:26
↓ 2 callersFunctionisCatchCall
( node: TSESTree.CallExpression, )
src/rules/no-conditional-expect.ts:11
↓ 2 callersFunctionisCustomTestBlockFunction
( node: TSESTree.CallExpression, )
src/rules/no-standalone-expect.ts:79
↓ 2 callersFunctionisFirstArgumentIdentifier
( expectFnCall: ParsedExpectFnCall, name: string, )
src/rules/prefer-to-be.ts:29
↓ 2 callersFunctionisMockImportLiteral
( expression: TSESTree.CallExpressionArgument, )
src/rules/no-mocks-import.ts:10
↓ 2 callersFunctionisPromiseMethodThatUsesValue
( node: TSESTree.AwaitExpression | TSESTree.ReturnStatement, identifier: TSESTree.Identifier, )
src/rules/valid-expect-in-promise.ts:85
↓ 2 callersFunctionisString
(node: TSESTree.Node)
src/rules/prefer-comparison-matcher.ts:12
↓ 2 callersFunctionisTemplateLiteral
( node: TSESTree.Node, value?: V, )
src/rules/utils/accessors.ts:52
↓ 2 callersFunctionisTokenASemicolon
(token: TSESTree.Token)
src/rules/utils/ast-utils.ts:8
↓ 2 callersFunctionisValueAwaitedOrReturned
( identifier: TSESTree.Identifier, body: TSESTree.Statement[], context: TSESLint.RuleContext<string, unk
src/rules/valid-expect-in-promise.ts:207
↓ 2 callersFunctionmockUnexpectedError
()
src/rules/__tests__/valid-mock-module-path.test.ts:327
↓ 2 callersFunctionnewDescribeContext
()
src/rules/no-identical-title.ts:15
↓ 2 callersFunctionnodeMatchesType
( node: TSESTree.Node, statementType: StatementTypes, paddingContext: PaddingContext, )
src/rules/utils/padding.ts:222
↓ 2 callersFunctionparseJestFnCallWithReason
( node: TSESTree.CallExpression, context: TSESLint.RuleContext<string, unknown[]>, )
src/rules/utils/parseJestFnCall.ts:229
↓ 2 callersFunctionpromiseArrayExceptionKey
({ start, end }: TSESTree.SourceLocation)
src/rules/valid-expect.ts:122
↓ 2 callersFunctionquoteStringValue
(node: StringNode)
src/rules/valid-title.ts:34
↓ 2 callersFunctionremoveExtraArgumentsFixer
( fixer: TSESLint.RuleFixer, context: TSESLint.RuleContext<string, unknown[]>, func: TSESTree.CallExpres
src/rules/utils/misc.ts:172
↓ 2 callersFunctionreport
( property: AccessorNode, isOnce: boolean, outerArgNode: TSESTree.Node, innerArgNode:
src/rules/prefer-mock-promise-shorthand.ts:45
↓ 2 callersFunctionreportOnViolation
( context: RuleContext, node: TSESTree.CallExpressionArgument | TSESTree.ExpressionStatement, { maxSize:
src/rules/no-large-snapshots.ts:24
↓ 2 callersFunctionreportSnapshotMatchersWithoutHints
()
src/rules/prefer-snapshot-hint.ts:63
↓ 2 callersFunctionresolve
()
src/rules/__tests__/valid-mock-module-path.test.ts:332
↓ 2 callersFunctionrunNodeScript
(cwd: string, script: string)
src/rules/utils/__tests__/detectJestVersion.test.ts:20
↓ 2 callersFunctionsuggestRemovingExtraArguments
( context: TSESLint.RuleContext<string, unknown[]>, func: TSESTree.CallExpression, from: number, )
src/rules/prefer-expect-assertions.ts:38
↓ 2 callersFunctiontestType
(type: PaddingType)
src/rules/utils/padding.ts:257
↓ 2 callersFunctionverifyNode
( node: TSESTree.Node, paddingContext: PaddingContext, )
src/rules/utils/padding.ts:285
↓ 2 callersFunctionwithOnce
(name: string, addOnce: boolean)
src/rules/prefer-mock-return-shorthand.ts:10
↓ 1 callersFunctionaddContainsMethodsClassInvalid
( code: string[], )
src/rules/__tests__/unbound-method.test.ts:267
↓ 1 callersFunctionareTokensOnSameLine
( left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, )
src/rules/utils/ast-utils.ts:11
↓ 1 callersFunctionbuildFixer
(equalityMatcher: string)
src/rules/prefer-equality-matcher.ts:73
↓ 1 callersFunctioncanBe
(firstArgumentType: ts.Type, flag: ts.TypeFlags)
src/rules/no-unnecessary-assertion.ts:5
↓ 1 callersFunctioncheckCallExpressionUsed
(nodes: TSESTree.Node[])
src/rules/expect-expect.ts:87
↓ 1 callersFunctioncompileFnCode
(pathToFn: string)
src/rules/utils/__tests__/detectJestVersion.test.ts:9
↓ 1 callersFunctioncreate
(context)
src/rules/utils/padding.ts:355
↓ 1 callersFunctioncreateScopeInfo
()
src/rules/utils/padding.ts:199
next →1–100 of 395, ranked by callers