@@ -20,6 +20,9 @@ import {
2020 type Identifier
2121} from "../src/index.ts" ;
2222
23+ // VARS
24+ const skip = false ;
25+
2326// CONSTANTS
2427const __dirname = path . dirname ( url . fileURLToPath ( import . meta. url ) ) ;
2528const kFixturePath = path . join ( __dirname , "fixtures" , "depWalker" ) ;
@@ -75,7 +78,7 @@ function cleanupPayload(payload: Payload) {
7578 }
7679}
7780
78- test ( "execute depWalker on @slimio/is" , async ( test ) => {
81+ test ( "execute depWalker on @slimio/is" , { skip } , async ( test ) => {
7982 Vulnera . setStrategy ( Vulnera . strategies . GITHUB_ADVISORY ) ;
8083 const { logger, errorCount } = buildLogger ( ) ;
8184 test . after ( ( ) => logger . removeAllListeners ( ) ) ;
@@ -93,7 +96,7 @@ test("execute depWalker on @slimio/is", async(test) => {
9396 assert . strictEqual ( errorCount ( ) , 0 ) ;
9497} ) ;
9598
96- test ( "execute depWalker on @slimio/config" , async ( test ) => {
99+ test ( "execute depWalker on @slimio/config" , { skip } , async ( test ) => {
97100 Vulnera . setStrategy ( Vulnera . strategies . GITHUB_ADVISORY ) ;
98101 const { logger, errorCount } = buildLogger ( ) ;
99102 test . after ( ( ) => logger . removeAllListeners ( ) ) ;
@@ -123,15 +126,15 @@ test("execute depWalker on @slimio/config", async(test) => {
123126 "@slimio/config"
124127 ] . sort ( ) ) ;
125128
126- const ajvDescriptor = resultAsJSON . ajv . versions [ "6.12.6 " ] ;
129+ const ajvDescriptor = resultAsJSON . ajv . versions [ "6.14.0 " ] ;
127130 const ajvUsedBy = Object . keys ( ajvDescriptor . usedBy ) ;
128131 assert . deepEqual ( ajvUsedBy , [
129132 "@slimio/config"
130133 ] ) ;
131134 assert . strictEqual ( errorCount ( ) , 0 ) ;
132135} ) ;
133136
134- test ( "execute depWalker on pkg.gitdeps" , async ( test ) => {
137+ test ( "execute depWalker on pkg.gitdeps" , { skip } , async ( test ) => {
135138 Vulnera . setStrategy ( Vulnera . strategies . GITHUB_ADVISORY ) ;
136139 const { logger, errors, statsCount } = buildLogger ( ) ;
137140 test . after ( ( ) => logger . removeAllListeners ( ) ) ;
@@ -149,13 +152,11 @@ test("execute depWalker on pkg.gitdeps", async(test) => {
149152 "@nodesecure/npm-types" ,
150153 "@openally/httpie" ,
151154 "@openally/result" ,
152- "content-type" ,
153155 "lru-cache" ,
154156 "nanodelay" ,
155157 "nanoevents" ,
156158 "nanoid" ,
157159 "pkg.gitdeps" ,
158- "statuses" ,
159160 "undici" ,
160161 "zen-observable"
161162 ] . sort ( ) ) ;
@@ -178,13 +179,13 @@ test("execute depWalker on pkg.gitdeps", async(test) => {
178179 assert . strictEqual ( typeof metadata . startedAt , "number" ) ;
179180 assert . strictEqual ( typeof metadata . executionTime , "number" ) ;
180181 assert . strictEqual ( Array . isArray ( metadata . apiCalls ) , true ) ;
181- assert . strictEqual ( metadata . apiCallsCount , 50 ) ;
182+ assert . strictEqual ( metadata . apiCallsCount , 42 ) ;
182183 assert . strictEqual ( metadata . errorCount , 2 ) ;
183184 assert . strictEqual ( metadata . errors . length , 2 ) ;
184- assert . strictEqual ( statsCount ( ) , 48 ) ;
185+ assert . strictEqual ( statsCount ( ) , 40 ) ;
185186} ) ;
186187
187- test ( "execute depWalker on typo-squatting (with location)" , async ( test ) => {
188+ test ( "execute depWalker on typo-squatting (with location)" , { skip } , async ( test ) => {
188189 Vulnera . setStrategy ( Vulnera . strategies . GITHUB_ADVISORY ) ;
189190 const { logger, errors, statsCount } = buildLogger ( ) ;
190191 test . after ( ( ) => logger . removeAllListeners ( ) ) ;
@@ -223,7 +224,7 @@ test("execute depWalker on typo-squatting (with location)", async(test) => {
223224 assert . strictEqual ( statsCount ( ) , 0 ) ;
224225} ) ;
225226
226- test ( "execute depWalker on typo-squatting (with no location)" , async ( test ) => {
227+ test ( "execute depWalker on typo-squatting (with no location)" , { skip } , async ( test ) => {
227228 Vulnera . setStrategy ( Vulnera . strategies . GITHUB_ADVISORY ) ;
228229 const { logger, errors } = buildLogger ( ) ;
229230 test . after ( ( ) => logger . removeAllListeners ( ) ) ;
@@ -250,7 +251,7 @@ test("execute depWalker on typo-squatting (with no location)", async(test) => {
250251 ] ) ;
251252} ) ;
252253
253- test ( "should highlight the given packages" , async ( ) => {
254+ test ( "should highlight the given packages" , { skip } , async ( ) => {
254255 const { logger } = buildLogger ( ) ;
255256 test . after ( ( ) => logger . removeAllListeners ( ) ) ;
256257
@@ -280,7 +281,7 @@ test("should highlight the given packages", async() => {
280281 ) ;
281282} ) ;
282283
283- test ( "should support multiple formats for packages highlighted" , async ( ) => {
284+ test ( "should support multiple formats for packages highlighted" , { skip } , async ( ) => {
284285 const { logger } = buildLogger ( ) ;
285286 test . after ( ( ) => logger . removeAllListeners ( ) ) ;
286287
@@ -307,7 +308,7 @@ test("should support multiple formats for packages highlighted", async() => {
307308 ) ;
308309} ) ;
309310
310- test ( "fetch payload of pacote on the npm registry" , async ( ) => {
311+ test ( "fetch payload of pacote on the npm registry" , { skip } , async ( ) => {
311312 const result = await from (
312313 "pacote" ,
313314 {
@@ -329,7 +330,7 @@ test("fetch payload of pacote on the npm registry", async() => {
329330 assert . strictEqual ( typeof result . rootDependency . integrity , "string" ) ;
330331} ) ;
331332
332- test ( "fetch payload of pacote on the gitlab registry" , async ( ) => {
333+ test ( "fetch payload of pacote on the gitlab registry" , { skip } , async ( ) => {
333334 const result = await from ( "pacote" , {
334335 registry : "https://gitlab.com/api/v4/packages/npm/" ,
335336 maxDepth : 10 ,
@@ -349,7 +350,7 @@ test("fetch payload of pacote on the gitlab registry", async() => {
349350 assert . strictEqual ( typeof result . rootDependency . integrity , "string" ) ;
350351} ) ;
351352
352- test ( "highlight contacts from a remote package" , async ( ) => {
353+ test ( "highlight contacts from a remote package" , { skip } , async ( ) => {
353354 const spec = "@adonisjs/logger" ;
354355 const result = await from ( spec , {
355356 highlight : {
0 commit comments