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

Function bundleHash

perf/test/confirm.test.mjs:26–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 let builds = {};
25 let currentHarness = await harnessHash();
26 let bundleHash = content =>
27 hash(Buffer.concat([Buffer.from('index.html'), Buffer.from(content)]));
28 for (let arm of ['base', 'candidate']) {
29 let dir = await fs.mkdtemp(path.join(local, 'builds', `test-confirm-${arm}-`));
30 directories.push(dir);

Callers 1

confirm.test.mjsFile · 0.85

Calls 1

hashFunction · 0.90

Tested by

no test coverage detected