MCPcopy
hub / github.com/yarnpkg/yarn / parse

Function parse

__tests__/util/git/git-ref-resolver.js:146–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144
145test('parseRefs', () => {
146 const parse = refs => {
147 const refsAsObject = {};
148 for (const [key, value] of parseRefs(refs).entries()) {
149 refsAsObject[key] = value;
150 }
151 return refsAsObject;
152 };
153
154 expect(parse(`64b2c0cee9e829f73c5ad32b8cc8cb6f3bec65bb refs/tags/v4.2.2`)).toMatchObject({
155 'refs/tags/v4.2.2': '64b2c0cee9e829f73c5ad32b8cc8cb6f3bec65bb',

Callers 2

lockfile.jsFile · 0.50

Calls 1

parseRefsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…