Home / Function/ testWithPointerType() — react Function Reference

testWithPointerType() — react Function Reference

Architecture documentation for the testWithPointerType() function in testHelpers.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  c35f2872_1e4f_b3df_5b5d_c3d3ddfb69db["testWithPointerType()"]
  e8ddf5ea_829d_30ec_14cf_70bc1d21a7a6["testHelpers.js"]
  c35f2872_1e4f_b3df_5b5d_c3d3ddfb69db -->|defined in| e8ddf5ea_829d_30ec_14cf_70bc1d21a7a6
  010da236_784b_cbe9_c79d_2a93e35a2880["hasPointerEvent()"]
  c35f2872_1e4f_b3df_5b5d_c3d3ddfb69db -->|calls| 010da236_784b_cbe9_c79d_2a93e35a2880
  style c35f2872_1e4f_b3df_5b5d_c3d3ddfb69db fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/dom-event-testing-library/testHelpers.js lines 28–35

export function testWithPointerType(message, testFn) {
  const table = hasPointerEvent()
    ? ['mouse', 'touch', 'pen']
    : ['mouse', 'touch'];
  test.each(table)(`${message}: %s`, pointerType => {
    testFn(pointerType);
  });
}

Domain

Subdomains

Frequently Asked Questions

What does testWithPointerType() do?
testWithPointerType() is a function in the react codebase, defined in packages/dom-event-testing-library/testHelpers.js.
Where is testWithPointerType() defined?
testWithPointerType() is defined in packages/dom-event-testing-library/testHelpers.js at line 28.
What does testWithPointerType() call?
testWithPointerType() calls 1 function(s): hasPointerEvent.

Analyze Your Own Codebase

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

Try Supermodel Free