Skip to content

Commit 590ad76

Browse files
committed
patch(vest): Remove suiteSummary from context
1 parent e8dbbc9 commit 590ad76

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

packages/vest/src/core/ctx/ctx.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { assign } from 'vest-utils';
44

55
import { Isolate, IsolateTypes } from 'IsolateTypes';
66
import { Modes } from 'Modes';
7-
import { SuiteSummary } from 'SuiteSummaryTypes';
87
import VestTest from 'VestTest';
98
import type { StateRef } from 'createStateRef';
109
import { generateIsolate } from 'generateIsolate';
@@ -49,5 +48,4 @@ type CTXType = {
4948
};
5049
emit: (event: string, ...args: any[]) => void;
5150
};
52-
summary?: SuiteSummary;
5351
};

packages/vest/src/core/suite/produce/summaryGenerators/genTestsSummary.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assign, invariant } from 'vest-utils';
1+
import { assign } from 'vest-utils';
22

33
import { countKeyBySeverity, Severity } from 'Severity';
44
import {
@@ -10,20 +10,12 @@ import {
1010
TestsContainer,
1111
} from 'SuiteSummaryTypes';
1212
import VestTest from 'VestTest';
13-
import ctx from 'ctx';
1413
import {
1514
shouldAddValidProperty,
1615
shouldAddValidPropertyInGroup,
1716
} from 'shouldAddValidProperty';
1817
import { useTestsFlat } from 'stateHooks';
1918

20-
export function useSummary(): SuiteSummary {
21-
const { summary } = ctx.useX();
22-
invariant(summary);
23-
24-
return summary;
25-
}
26-
2719
/**
2820
* Reads the testObjects list and gets full validation result from it.
2921
*/

0 commit comments

Comments
 (0)