KC's Workspace
Github
Preparing search index...
@kcconfigs/vitest
<internal>
SnapshotEnvironment
Interface SnapshotEnvironment
interface
SnapshotEnvironment
{
getHeader
:
()
=>
string
;
getVersion
:
()
=>
string
;
processStackTrace
?:
(
stack
:
ParsedStack
)
=>
ParsedStack
;
readSnapshotFile
:
(
filepath
:
string
)
=>
Promise
<
string
|
null
>
;
removeSnapshotFile
:
(
filepath
:
string
)
=>
Promise
<
void
>
;
resolvePath
:
(
filepath
:
string
)
=>
Promise
<
string
>
;
resolveRawPath
:
(
testPath
:
string
,
rawPath
:
string
)
=>
Promise
<
string
>
;
saveSnapshotFile
:
(
filepath
:
string
,
snapshot
:
string
)
=>
Promise
<
void
>
;
}
Index
Properties
get
Header
get
Version
process
Stack
Trace?
read
Snapshot
File
remove
Snapshot
File
resolve
Path
resolve
Raw
Path
save
Snapshot
File
Properties
get
Header
getHeader
:
()
=>
string
get
Version
getVersion
:
()
=>
string
Optional
process
Stack
Trace
processStackTrace
?:
(
stack
:
ParsedStack
)
=>
ParsedStack
read
Snapshot
File
readSnapshotFile
:
(
filepath
:
string
)
=>
Promise
<
string
|
null
>
remove
Snapshot
File
removeSnapshotFile
:
(
filepath
:
string
)
=>
Promise
<
void
>
resolve
Path
resolvePath
:
(
filepath
:
string
)
=>
Promise
<
string
>
resolve
Raw
Path
resolveRawPath
:
(
testPath
:
string
,
rawPath
:
string
)
=>
Promise
<
string
>
save
Snapshot
File
saveSnapshotFile
:
(
filepath
:
string
,
snapshot
:
string
)
=>
Promise
<
void
>
Settings
Member Visibility
Protected
External
Internal
Beta
Alpha
Theme
OS
Light
Dark
On This Page
Properties
get
Header
get
Version
process
Stack
Trace
read
Snapshot
File
remove
Snapshot
File
resolve
Path
resolve
Raw
Path
save
Snapshot
File
Github
KC's Workspace
Loading...