MCPcopy
hub / github.com/preactjs/preact / refs.test.jsx

File refs.test.jsx

test/browser/refs.test.jsx:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { setupRerender } from 'preact/test-utils';
2import { createElement, render, Component, createRef, Fragment } from 'preact';
3import { setupScratch, teardown } from '../_util/helpers';
4import { vi } from 'vitest';

Callers

nothing calls this directly

Calls 12

setupScratchFunction · 0.90
setupRerenderFunction · 0.90
teardownFunction · 0.90
renderFunction · 0.90
createRefFunction · 0.90
spyFunction · 0.85
rerenderFunction · 0.85
setStateMethod · 0.80
refFunction · 0.70
appendChildMethod · 0.65
updateFunction · 0.50
setFunction · 0.50

Tested by

no test coverage detected