Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F21588837
global-teardown.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
636 B
Referenced Files
None
Subscribers
None
global-teardown.ts
View Options
import
{
glob
}
from
"glob"
;
import
*
as
fs
from
"fs/promises"
;
import
*
as
path
from
"path"
;
export
default
async
()
=>
{
console
.
log
(
"All tests finished. merging coverage information..."
);
try
{
await
fs
.
rm
(
"coverage/tmp"
,
{
recursive
:
true
});
}
catch
(
e
)
{
console
.
error
(
"Couldn't delete the './coverage/tmp' directory - maybe it wasn't there in the first place"
);
}
await
fs
.
mkdir
(
"coverage/tmp"
,
{
recursive
:
true
});
let
files
=
await
glob
(
"coverage/tmp_split/**/*.json"
);
await
Promise
.
all
(
files
.
map
((
file
,
index
)
=>
{
fs
.
copyFile
(
file
,
path
.
join
(
"coverage"
,
"tmp"
,
path
.
basename
(
file
)));
})
);
};
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Sat, Nov 7, 15:28 (14 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1181797
Default Alt Text
global-teardown.ts (636 B)
Attached To
Mode
rPLAY Sealious playground
Attached
Detach File
Event Timeline