KC's Workspace
Github
Preparing search index...
@kcconfigs/vitest
<internal>
StateManager
Class StateManager
Index
Constructors
constructor
Properties
blobs?
errors
Set
files
Map
id
Map
metadata
on
Unhandled
Error?
paths
Set
reported
Tasks
Map
task
File
Map
transform
Time
Methods
cancel
Files
catch
Error
clear
Errors
clear
Files
collect
Files
collect
Paths
get
Count
Of
Failed
Tests
get
Failed
Filepaths
get
Filepaths
get
Files
get
Paths
get
Reported
Entity
get
Reported
Entity
By
Id
get
Test
Modules
get
Unhandled
Errors
update
Id
update
Tasks
update
User
Log
Constructors
constructor
new
StateManager
(
options
:
{
onUnhandledError
?:
OnUnhandledErrorCallback
}
,
)
:
StateManager
Parameters
options
:
{
onUnhandledError
?:
OnUnhandledErrorCallback
}
Returns
StateManager
Properties
Optional
blobs
blobs
?:
MergedBlobs
errors
Set
errorsSet
:
Set
<
unknown
>
files
Map
filesMap
:
Map
<
string
,
File
[]
>
id
Map
idMap
:
Map
<
string
,
Task
>
metadata
metadata
:
Record
<
string
,
{
dumpDir
?:
string
;
duration
:
Record
<
string
,
number
[]
>
;
externalized
:
Record
<
string
,
string
>
;
outline
?:
{
externalized
:
number
;
inlined
:
number
}
;
tmps
:
Record
<
string
,
string
>
;
}
,
>
Optional
on
Unhandled
Error
onUnhandledError
?:
OnUnhandledErrorCallback
paths
Set
pathsSet
:
Set
<
string
>
reported
Tasks
Map
reportedTasksMap
:
WeakMap
<
Task
,
TestModule
|
TestCase
|
TestSuite
>
task
File
Map
taskFileMap
:
WeakMap
<
Task
,
File
>
transform
Time
transformTime
:
number
Methods
cancel
Files
cancelFiles
(
files
:
FileSpecification
[]
,
project
:
TestProject
)
:
void
Parameters
files
:
FileSpecification
[]
project
:
TestProject
Returns
void
catch
Error
catchError
(
error
:
unknown
,
type
:
string
)
:
void
Parameters
error
:
unknown
type
:
string
Returns
void
clear
Errors
clearErrors
()
:
void
Returns
void
clear
Files
clearFiles
(
project
:
TestProject
,
paths
?:
string
[]
)
:
void
Parameters
project
:
TestProject
Optional
paths
:
string
[]
Returns
void
collect
Files
collectFiles
(
project
:
TestProject
,
files
?:
File
[]
)
:
void
Parameters
project
:
TestProject
Optional
files
:
File
[]
Returns
void
collect
Paths
collectPaths
(
paths
?:
string
[]
)
:
void
Parameters
Optional
paths
:
string
[]
Returns
void
get
Count
Of
Failed
Tests
getCountOfFailedTests
()
:
number
Returns
number
get
Failed
Filepaths
getFailedFilepaths
()
:
string
[]
Returns
string
[]
get
Filepaths
getFilepaths
()
:
string
[]
Returns
string
[]
get
Files
getFiles
(
keys
?:
string
[]
)
:
File
[]
Return files that were running or collected.
Parameters
Optional
keys
:
string
[]
Returns
File
[]
get
Paths
getPaths
()
:
string
[]
Returns
string
[]
get
Reported
Entity
getReportedEntity
(
task
:
Task
)
:
TestModule
|
TestCase
|
TestSuite
|
undefined
Parameters
task
:
Task
Returns
TestModule
|
TestCase
|
TestSuite
|
undefined
get
Reported
Entity
By
Id
getReportedEntityById
(
taskId
:
string
,
)
:
TestModule
|
TestCase
|
TestSuite
|
undefined
Parameters
taskId
:
string
Returns
TestModule
|
TestCase
|
TestSuite
|
undefined
get
Test
Modules
getTestModules
(
keys
?:
string
[]
)
:
TestModule
[]
Parameters
Optional
keys
:
string
[]
Returns
TestModule
[]
get
Unhandled
Errors
getUnhandledErrors
()
:
unknown
[]
Returns
unknown
[]
update
Id
updateId
(
task
:
Task
,
project
:
TestProject
)
:
void
Parameters
task
:
Task
project
:
TestProject
Returns
void
update
Tasks
updateTasks
(
packs
:
TaskResultPack
[]
)
:
void
Parameters
packs
:
TaskResultPack
[]
Returns
void
update
User
Log
updateUserLog
(
log
:
UserConsoleLog
)
:
void
Parameters
log
:
UserConsoleLog
Returns
void
Settings
Member Visibility
Protected
External
Internal
Beta
Alpha
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
blobs
errors
Set
files
Map
id
Map
metadata
on
Unhandled
Error
paths
Set
reported
Tasks
Map
task
File
Map
transform
Time
Methods
cancel
Files
catch
Error
clear
Errors
clear
Files
collect
Files
collect
Paths
get
Count
Of
Failed
Tests
get
Failed
Filepaths
get
Filepaths
get
Files
get
Paths
get
Reported
Entity
get
Reported
Entity
By
Id
get
Test
Modules
get
Unhandled
Errors
update
Id
update
Tasks
update
User
Log
Github
KC's Workspace
Loading...
Return files that were running or collected.