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

Function driver

perf/drivers.mjs:994–1002  ·  view source on GitHub ↗
(scenario)

Source from the content-addressed store, hash-verified

992};
993
994export function driver(scenario) {
995 let name = scenario.id.slice(scenario.fixture.length + 1);
996 let fixture = drivers[scenario.fixture];
997 let action = fixture?.actions[name];
998 if (!action || scenario.id !== `${scenario.fixture}.${name}`) {
999 throw new Error(`Unknown scenario: ${scenario.id}`);
1000 }
1001 return {fixture, action, name};
1002}

Callers 3

prepareFunction · 0.90
performFunction · 0.90
drivers.test.mjsFile · 0.90

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected