Skip to content

Commit 9fb3d20

Browse files
committed
Check stdout in debug
1 parent f050445 commit 9fb3d20

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ describe('socket fix', async () => {
6262
'should require args with just dry-run',
6363
async cmd => {
6464
const { code, stderr, stdout } = await invokeNpm(entryPath, cmd)
65+
expect(stdout).toMatchInlineSnapshot(`
66+
"\\x1b[34mi\\x1b[39m Fixing packages for npm
67+
[DryRun]: Not saving"
68+
`)
6569
expect(`\n ${stderr}`).toMatchInlineSnapshot(`
6670
"
6771
_____ _ _ /---------------
@@ -71,10 +75,6 @@ describe('socket fix', async () => {
7175
7276
\\x1b[33m\\u203c\\x1b[39m socket fix: Package package-lock.json found at <redacted>"
7377
`)
74-
expect(stdout).toMatchInlineSnapshot(`
75-
"\\x1b[34mi\\x1b[39m Fixing packages for npm
76-
[DryRun]: Not saving"
77-
`)
7878
expect(code, 'dry-run should exit with code 0 if input ok').toBe(0)
7979
}
8080
)

0 commit comments

Comments
 (0)