MCPcopy Create free account
hub / github.com/adobe/react-spectrum / resizeTable

Function resizeTable

packages/react-aria-components/test/Table.test.js:2111–2117  ·  view source on GitHub ↗
(clientWidth, newValue)

Source from the content-addressed store, hash-verified

2109 }
2110
2111 function resizeTable(clientWidth, newValue) {
2112 clientWidth.mockImplementation(() => newValue);
2113 fireEvent(window, new Event('resize'));
2114 act(() => {
2115 jest.runAllTimers();
2116 });
2117 }
2118
2119 let defaultColumns = [
2120 {name: 'Name', uid: 'name', width: '1fr'},

Callers

nothing calls this directly

Calls 1

actFunction · 0.85

Tested by

no test coverage detected