File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed
suite/produce/summaryGenerators Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { assign } from 'vest-utils';
44
55import { Isolate , IsolateTypes } from 'IsolateTypes' ;
66import { Modes } from 'Modes' ;
7- import { SuiteSummary } from 'SuiteSummaryTypes' ;
87import VestTest from 'VestTest' ;
98import type { StateRef } from 'createStateRef' ;
109import { generateIsolate } from 'generateIsolate' ;
@@ -49,5 +48,4 @@ type CTXType = {
4948 } ;
5049 emit : ( event : string , ...args : any [ ] ) => void ;
5150 } ;
52- summary ?: SuiteSummary ;
5351} ;
Original file line number Diff line number Diff line change 1- import { assign , invariant } from 'vest-utils' ;
1+ import { assign } from 'vest-utils' ;
22
33import { countKeyBySeverity , Severity } from 'Severity' ;
44import {
@@ -10,20 +10,12 @@ import {
1010 TestsContainer ,
1111} from 'SuiteSummaryTypes' ;
1212import VestTest from 'VestTest' ;
13- import ctx from 'ctx' ;
1413import {
1514 shouldAddValidProperty ,
1615 shouldAddValidPropertyInGroup ,
1716} from 'shouldAddValidProperty' ;
1817import { 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 */
You can’t perform that action at this time.
0 commit comments