Skip to content

Commit 36450c5

Browse files
committed
test(credentials): rely on the shared env reset in the proxy validator tests
1 parent 3d3a9c9 commit 36450c5

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

  • apps/sim/lib/credentials/token-service-accounts/validators

‎apps/sim/lib/credentials/token-service-accounts/validators/http.test.ts‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
inputValidationMock,
44
inputValidationMockFns,
55
} from '@sim/testing/mocks/input-validation.mock'
6-
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
6+
import { beforeEach, describe, expect, it, vi } from 'vitest'
77

88
const { mockResolveHost } = vi.hoisted(() => ({ mockResolveHost: vi.fn() }))
99

@@ -217,10 +217,6 @@ describe('tokenCheckValidator with a typed host', () => {
217217
})
218218

219219
describe('behind an environment proxy', () => {
220-
afterEach(() => {
221-
vi.unstubAllEnvs()
222-
})
223-
224220
it('refuses a host with a private record alongside its public one before sending the token', async () => {
225221
vi.stubEnv('HTTPS_PROXY', 'http://proxy.internal:3128')
226222
const actual = await vi.importActual<typeof InputValidation>(

0 commit comments

Comments
 (0)