|
1 | | -import { describe, expect } from 'vitest' |
| 1 | +import { describe, expect, it } from 'vitest' |
2 | 2 |
|
3 | 3 | import constants from '../../../src/constants.mts' |
4 | 4 | import { cmdit, spawnSocketCli } from '../../../test/utils.mts' |
@@ -469,32 +469,33 @@ describe('socket scan reach', async () => { |
469 | 469 | }, |
470 | 470 | ) |
471 | 471 |
|
472 | | - cmdit( |
473 | | - [ |
474 | | - 'scan', |
475 | | - 'reach', |
476 | | - '--dry-run', |
477 | | - '--reach-analysis-memory-limit', |
478 | | - '16384', |
479 | | - '--reach-analysis-timeout', |
480 | | - '7200', |
481 | | - '--reach-ecosystems', |
482 | | - 'npm', |
483 | | - '--reach-exclude-paths', |
484 | | - 'node_modules', |
485 | | - '--org', |
486 | | - 'fakeOrg', |
487 | | - '--config', |
488 | | - '{"apiToken":"fakeToken"}', |
489 | | - ], |
490 | | - 'should accept comprehensive reachability configuration in dry-run', |
491 | | - async cmd => { |
| 472 | + it.skipIf(constants.WIN32)( |
| 473 | + 'should accept comprehensive reachability configuration in dry-run: `scan reach --dry-run --reach-analysis-memory-limit 16384 --reach-analysis-timeout 7200 --reach-ecosystems npm --reach-exclude-paths node_modules --org fakeOrg --config {"apiToken":"fakeToken"}`', |
| 474 | + async () => { |
| 475 | + const cmd = [ |
| 476 | + 'scan', |
| 477 | + 'reach', |
| 478 | + '--dry-run', |
| 479 | + '--reach-analysis-memory-limit', |
| 480 | + '16384', |
| 481 | + '--reach-analysis-timeout', |
| 482 | + '7200', |
| 483 | + '--reach-ecosystems', |
| 484 | + 'npm', |
| 485 | + '--reach-exclude-paths', |
| 486 | + 'node_modules', |
| 487 | + '--org', |
| 488 | + 'fakeOrg', |
| 489 | + '--config', |
| 490 | + '{"apiToken":"fakeToken"}', |
| 491 | + ] |
492 | 492 | const { code, stdout } = await spawnSocketCli(binCliPath, cmd, { |
493 | 493 | cwd: '/tmp', |
494 | 494 | }) |
495 | 495 | expect(stdout).toMatchInlineSnapshot(`"[DryRun]: Bailing now"`) |
496 | 496 | expect(code, 'should exit with code 0').toBe(0) |
497 | 497 | }, |
| 498 | + { timeout: 30_000 }, |
498 | 499 | ) |
499 | 500 |
|
500 | 501 | describe('non dry-run tests', () => { |
|
0 commit comments