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

Function completed

perf/test/report.test.mjs:133–152  ·  view source on GitHub ↗
(overrides = {})

Source from the content-addressed store, hash-verified

131});
132
133function completed(overrides = {}) {
134 return {
135 status: 'complete',
136 started: 'test',
137 environment: {browser: 'test'},
138 builds: {
139 base: {name: 'base', versions: {react: 'test'}, source: {sha: '1234567890'}},
140 candidate: {name: 'candidate', versions: {react: 'test'}, source: {sha: '0987654321'}}
141 },
142 options: {blocks: 1, samples: 1, warmup: 0},
143 samples: paired([0], [5]).map(sample => ({
144 ...sample,
145 scenario: 'listbox.mount',
146 metrics: {...sample.metrics, ready: 0, reportedInteractionMax: null, frameMax: null}
147 })),
148 scenarios: [{id: 'listbox.mount'}],
149 diagnostics: [],
150 ...overrides
151 };
152}
153
154test('runs in progress are reported as incomplete, not failed', () => {
155 let result = completed({status: 'running', options: {blocks: 8, samples: 1, warmup: 0}});

Callers 1

report.test.mjsFile · 0.85

Calls 1

pairedFunction · 0.85

Tested by

no test coverage detected