File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ async function main() {
40
40
const extensionTestsPath = path . resolve ( __dirname , './suite/index' ) ;
41
41
42
42
const testWorkspace = path . resolve ( __dirname , '../../test-workspace' ) ;
43
+ console . log ( `Test workspace: ${ testWorkspace } ` ) ;
43
44
44
45
if ( ! fs . existsSync ( testWorkspace ) ) {
45
46
fs . mkdirSync ( testWorkspace ) ;
@@ -54,11 +55,11 @@ async function main() {
54
55
} ) ;
55
56
56
57
console . log ( 'Test workspace contents: ' ) ;
57
- forDirContents ( testWorkspace , ( ) => console . log ) ;
58
+ forDirContents ( testWorkspace , ( file , absPath ) => console . log ( absPath ) ) ;
58
59
if ( exitCode === 0 ) {
59
60
console . log ( `Tests were succesfull, deleting test workspace in ${ testWorkspace } ` ) ;
60
- forDirContents ( testWorkspace , ( file : fs . Dirent ) => {
61
- return file . isDirectory ( ) ? fs . rmdirSync : fs . unlinkSync ;
61
+ forDirContents ( testWorkspace , ( file , absPath ) => {
62
+ return file . isDirectory ( ) ? fs . rmdirSync ( absPath ) : fs . unlinkSync ( absPath ) ;
62
63
} ) ;
63
64
}
64
65
} catch ( err ) {
You can’t perform that action at this time.
0 commit comments