Home / Function/ makeTestCaseError() — react Function Reference

makeTestCaseError() — react Function Reference

Architecture documentation for the makeTestCaseError() function in shared-utils.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  1ce82843_86af_f383_f6a3_ab648fb0e6be["makeTestCaseError()"]
  799656f0_feaf_2c82_77fc_4a08283ea146["shared-utils.ts"]
  1ce82843_86af_f383_f6a3_ab648fb0e6be -->|defined in| 799656f0_feaf_2c82_77fc_4a08283ea146
  style 1ce82843_86af_f383_f6a3_ab648fb0e6be fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/eslint-plugin-react-compiler/__tests__/shared-utils.ts lines 22–26

export function makeTestCaseError(reason: string): ESLintTester.TestCaseError {
  return {
    message: new RegExp(escape(reason)),
  };
}

Domain

Subdomains

Frequently Asked Questions

What does makeTestCaseError() do?
makeTestCaseError() is a function in the react codebase, defined in compiler/packages/eslint-plugin-react-compiler/__tests__/shared-utils.ts.
Where is makeTestCaseError() defined?
makeTestCaseError() is defined in compiler/packages/eslint-plugin-react-compiler/__tests__/shared-utils.ts at line 22.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free