Skip to content

Commit 8c81b47

Browse files
jdaltonclaude
andcommitted
Add TODO comments for remaining test failures
Document 8 failing tests across 7 test files with TODO comments: - cmd-scan-create.test.mts: scan create with zero timeout - cmd-analytics.test.mts: analytics with --dry-run - cmd-yarn.test.mts: yarn install with --dry-run - cmd-fix.test.mts: fix with CVE ID conversion - cmd-pnpm.test.mts: pnpm add/install tests (3 tests) - cmd-login-smoke.test.mts: login --help - cmd-manifest-cdxgen.test.mts: cdxgen unknown flag forwarding (3 tests) These tests require further investigation to determine root causes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent c721aab commit 8c81b47

File tree

7 files changed

+22
-0
lines changed

7 files changed

+22
-0
lines changed

src/commands/analytics/cmd-analytics.test.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ describe('socket analytics', async () => {
125125
},
126126
)
127127

128+
// TODO: Fix test failure - analytics with --dry-run without args
129+
// Test may be timing out or failing on snapshot mismatch
128130
cmdit(
129131
['analytics', FLAG_DRY_RUN, FLAG_CONFIG, '{"apiToken":"fakeToken"}'],
130132
'should run to dryrun without args',

src/commands/fix/cmd-fix.test.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,8 @@ describe('socket fix', async () => {
481481
FLAG_CONFIG,
482482
'{"apiToken":"fake-token"}',
483483
],
484+
// TODO: Fix test failure - fix command with CVE ID conversion for lodash vulnerability
485+
// Test may be failing due to API mocking or CVE lookup issues
484486
'should handle CVE ID conversion for lodash vulnerability',
485487
async cmd => {
486488
const { cleanup, tempDir } = await withTempFixture(

src/commands/login/cmd-login-smoke.test.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ describe('socket login - smoke test scenarios', () => {
99
})
1010

1111
describe('basic functionality', () => {
12+
// TODO: Fix test failure - login --help command
13+
// Test may be failing due to snapshot mismatch or output format changes
1214
it('should show help: `login --help`', async () => {
1315
const result = await runWithConfig('login', '--help')
1416
expect(result.exitCode).toBe(0)

src/commands/manifest/cmd-manifest-cdxgen.test.mts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ describe('socket manifest cdxgen', async () => {
154154
},
155155
)
156156

157+
// TODO: Fix test failure - cdxgen unknown short flag forwarding
158+
// Test may be timing out or failing due to command forwarding logic changes
157159
it('should not forward an unknown short flag to cdxgen', async () => {
158160
const command = '-u'
159161
await expect(
@@ -168,6 +170,8 @@ describe('socket manifest cdxgen', async () => {
168170
)
169171
})
170172

173+
// TODO: Fix test failure - cdxgen unknown flag forwarding
174+
// Test may be timing out or failing due to command forwarding logic changes
171175
it('should not forward an unknown flag to cdxgen', async () => {
172176
const command = '--unknown'
173177
await expect(
@@ -182,6 +186,8 @@ describe('socket manifest cdxgen', async () => {
182186
)
183187
})
184188

189+
// TODO: Fix test failure - cdxgen multiple unknown flags forwarding
190+
// Test may be timing out or failing due to command forwarding logic changes
185191
it('should not forward multiple unknown flags to cdxgen', async () => {
186192
await expect(
187193
() =>

src/commands/pnpm/cmd-pnpm.test.mts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ describe('socket pnpm', async () => {
156156
FLAG_CONFIG,
157157
'{"apiToken":"fakeToken"}',
158158
],
159+
// TODO: Fix test failure - pnpm add with --dry-run flag
160+
// Test may be failing due to snapshot mismatch or pnpm behavior changes
159161
'should handle add with --dry-run flag',
160162
async cmd => {
161163
const { code, stdout } = await spawnSocketCli(binCliPath, cmd, {
@@ -196,6 +198,8 @@ describe('socket pnpm', async () => {
196198
FLAG_CONFIG,
197199
'{"apiToken":"fakeToken"}',
198200
],
201+
// TODO: Fix test failure - pnpm add scoped packages with version
202+
// Test may be failing due to snapshot mismatch or pnpm behavior changes
199203
'should handle scoped packages with version',
200204
async cmd => {
201205
const { code, stdout } = await spawnSocketCli(binCliPath, cmd, {
@@ -222,6 +226,8 @@ describe('socket pnpm', async () => {
222226
FLAG_CONFIG,
223227
'{"apiToken":"fakeToken","issueRules":{"malware":true}}',
224228
],
229+
// TODO: Fix test failure - pnpm install with issueRules for malware
230+
// Test may be failing due to API mocking or issueRules behavior changes
225231
'should handle install with issueRules for malware',
226232
async cmd => {
227233
const { code, stdout } = await spawnSocketCli(binCliPath, cmd, {

src/commands/scan/cmd-scan-create.test.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,8 @@ describe('socket scan create', async () => {
620620
},
621621
)
622622

623+
// TODO: Fix test failure - scan create with zero timeout (unlimited)
624+
// Test expects exit code 0 but actual behavior may differ
623625
cmdit(
624626
[
625627
'scan',

src/commands/yarn/cmd-yarn.test.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ describe('socket yarn', async () => {
131131
},
132132
)
133133

134+
// TODO: Fix test failure - yarn install with --dry-run flag
135+
// Test may be failing due to yarn-specific behavior or snapshot mismatch
134136
cmdit(
135137
[YARN, 'install', FLAG_DRY_RUN, FLAG_CONFIG, '{"apiToken":"fakeToken"}'],
136138
'should handle install with --dry-run flag',

0 commit comments

Comments
 (0)