Commit 4d5597d 1 parent f94ede0 commit 4d5597d Copy full SHA for 4d5597d
File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,10 @@ export interface File extends Suite {
68
68
projectName : string | undefined
69
69
collectDuration ?: number
70
70
setupDuration ?: number
71
+ /**
72
+ * Whether the file is initiated without running any tests.
73
+ */
74
+ local ?: boolean
71
75
}
72
76
73
77
export interface Test < ExtraContext = { } > extends TaskPopulated {
Original file line number Diff line number Diff line change @@ -69,14 +69,17 @@ export class StateManager {
69
69
return Array . from ( this . pathsSet )
70
70
}
71
71
72
+ /**
73
+ * Return files that were running or collected.
74
+ */
72
75
getFiles ( keys ?: string [ ] ) : File [ ] {
73
76
if ( keys ) {
74
77
return keys
75
78
. map ( key => this . filesMap . get ( key ) ! )
76
- . filter ( Boolean )
77
79
. flat ( )
80
+ . filter ( file => file && ! file . local )
78
81
}
79
- return Array . from ( this . filesMap . values ( ) ) . flat ( )
82
+ return Array . from ( this . filesMap . values ( ) ) . flat ( ) . filter ( file => ! file . local )
80
83
}
81
84
82
85
getFilepaths ( ) : string [ ] {
@@ -128,6 +131,7 @@ export class StateManager {
128
131
project . config . root ,
129
132
project . config . name ,
130
133
)
134
+ fileTask . local = true
131
135
this . idMap . set ( fileTask . id , fileTask )
132
136
if ( ! files ) {
133
137
this . filesMap . set ( path , [ fileTask ] )
You can’t perform that action at this time.
0 commit comments