11import { describe, expect, it } from 'vitest'
22
3- import { validateSocketJson } from '../../test/json-output-validation.mts'
4- import { runWithConfig } from '../../test/run-with-config.mts'
3+ import { validateSocketJson } from '../../../ test/json-output-validation.mts'
4+ import { runWithConfig } from '../../../ test/run-with-config.mts'
55
66describe('socket repos - smoke test scenarios', () => {
77 describe('no-interactive mode', () => {
@@ -103,7 +103,7 @@ describe('socket repos - smoke test scenarios', () => {
103103 '--config',
104104 fakeOrgConfig,
105105 )
106- expect(result.exitCode).toBe(1 )
106+ expect(result.exitCode).toBe(2 )
107107
108108 const jsonResponse = validateSocketJson(result.stdout, result.exitCode)
109109 expect(jsonResponse.ok).toBe(false)
@@ -118,7 +118,7 @@ describe('socket repos - smoke test scenarios', () => {
118118 '--config',
119119 fakeOrgConfig,
120120 )
121- expect(result.exitCode).toBe(1 )
121+ expect(result.exitCode).toBe(2 )
122122
123123 const jsonResponse = validateSocketJson(result.stdout, result.exitCode)
124124 expect(jsonResponse.ok).toBe(false)
@@ -133,7 +133,7 @@ describe('socket repos - smoke test scenarios', () => {
133133 '--config',
134134 fakeOrgConfig,
135135 )
136- expect(result.exitCode).toBe(1 )
136+ expect(result.exitCode).toBe(2 )
137137
138138 const jsonResponse = validateSocketJson(result.stdout, result.exitCode)
139139 expect(jsonResponse.ok).toBe(false)
@@ -147,7 +147,7 @@ describe('socket repos - smoke test scenarios', () => {
147147 '--config',
148148 fakeOrgConfig,
149149 )
150- expect(result.exitCode).toBe(1 )
150+ expect(result.exitCode).toBe(2 )
151151
152152 const jsonResponse = validateSocketJson(result.stdout, result.exitCode)
153153 expect(jsonResponse.ok).toBe(false)
@@ -164,7 +164,7 @@ describe('socket repos - smoke test scenarios', () => {
164164 '--config',
165165 fakeOrgConfig,
166166 )
167- expect(result.exitCode).toBe(1 )
167+ expect(result.exitCode).toBe(2 )
168168
169169 const jsonResponse = validateSocketJson(result.stdout, result.exitCode)
170170 expect(jsonResponse.ok).toBe(false)
@@ -174,12 +174,12 @@ describe('socket repos - smoke test scenarios', () => {
174174 describe('invalid repository names', () => {
175175 it('should fail create with invalid name: `repos create "%$#"`', async () => {
176176 const result = await runWithConfig('repos', 'create', '%$#')
177- expect(result.exitCode).toBe(1 )
177+ expect(result.exitCode).toBe(2 )
178178 })
179179
180180 it('should fail create with invalid name and json: `repos create "%$#" --json`', async () => {
181181 const result = await runWithConfig('repos', 'create', '%$#', '--json')
182- expect(result.exitCode).toBe(1 )
182+ expect(result.exitCode).toBe(2 )
183183
184184 const jsonResponse = validateSocketJson(result.stdout, result.exitCode)
185185 expect(jsonResponse.ok).toBe(false)
0 commit comments