Skip to content

Commit

Permalink
patch(vest): make suite result methods use static summary object
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Mar 28, 2022
1 parent 742d340 commit a8484a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vest/src/core/suite/produce/produceSuiteResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function produceSuiteResult(): SuiteResult {
ctx.bind(ctxRef, () => {
const summary = genTestsSummary();
const suiteName = useSuiteName();
const ref = { summary, ...ctxRef };
const ref = assign({ summary }, ctxRef);
return assign(summary, {
getErrors: ctx.bind(ref, getErrors),
getErrorsByGroup: ctx.bind(ref, getErrorsByGroup),
Expand Down

0 comments on commit a8484a8

Please sign in to comment.