MCPcopy
hub / github.com/graphql/graphql-js / expectMatchingValues

Function expectMatchingValues

src/__testUtils__/expectMatchingValues.ts:3–9  ·  view source on GitHub ↗
(values: ReadonlyArray<T>)

Source from the content-addressed store, hash-verified

1import { expectJSON } from './expectJSON.ts';
2
3export function expectMatchingValues<T>(values: ReadonlyArray<T>): T {
4 const [firstValue, ...remainingValues] = values;
5 for (const value of remainingValues) {
6 expectJSON(value).toDeepEqual(firstValue);
7 }
8 return firstValue;
9}

Callers 2

Calls 1

expectJSONFunction · 0.90

Tested by

no test coverage detected