MCPcopy
hub / github.com/nilbuild/driver.js / createDriver

Function createDriver

tests/utils.ts:22–25  ·  view source on GitHub ↗
(config?: DriverConfig)

Source from the content-addressed store, hash-verified

20let active: Driver | undefined;
21
22export function createDriver(config?: DriverConfig): Driver {
23 active = driver(config);
24 return active;
25}
26
27// Resets the DOM before each test and tears the driver down after, so the
28// library's module-level state never leaks between tests. Call once per file.

Callers 15

events.test.tsFile · 0.90
animation.test.tsFile · 0.90
keyboard.test.tsFile · 0.90
hooks.test.tsFile · 0.90
popover.test.tsFile · 0.90
positionArrowFunction · 0.90
topForOffsetFunction · 0.90
config.test.tsFile · 0.90
highlight.test.tsFile · 0.90
addCustomFooterButtonFunction · 0.90
scroll.test.tsFile · 0.90

Calls 1

driverFunction · 0.90

Tested by 3

positionArrowFunction · 0.72
topForOffsetFunction · 0.72
addCustomFooterButtonFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…