1+ // Copyright (c) Microsoft Corporation. All rights reserved.
2+ // Licensed under the MIT license. See LICENSE file in the project root for details.
3+
14import * as fs from "fs" ;
25import * as path from "path" ;
6+ import { fileURLToPath , pathToFileURL } from "url" ;
37import assert = require( "assert" ) ;
48import AdmZip = require( "adm-zip" ) ;
59
610export function startVsixExistenceTest ( ) : void {
711 describe ( "VSIX existence check" , ( ) => {
812 // Use repo-relative path to match CI workspace
9- const targetDir = path . resolve ( __dirname , ".." , ".." , "resources" , "extension" ) ;
13+ const targetDirUri = pathToFileURL (
14+ path . resolve ( __dirname , ".." , ".." , "resources" , "extension" ) ,
15+ ) . toString ( ) ;
16+ const targetDir = fileURLToPath ( targetDirUri ) ;
1017
1118 it ( "Soft-check VSIX presence without failing PR" , function ( ) {
1219 const files = fs . existsSync ( targetDir )
@@ -24,7 +31,7 @@ export function startVsixExistenceTest(): void {
2431 }
2532 } ) ;
2633
27- it . only ( "VSIX manifest contains required Identity fields" , function ( ) {
34+ it ( "VSIX manifest contains required Identity fields" , function ( ) {
2835 if ( ! fs . existsSync ( targetDir ) ) {
2936 this . skip ?.( ) ;
3037 return ;
0 commit comments