Skip to content

Commit c6828db

Browse files
authored
fix(test): drop the redundant unstubAllEnvs hook from the chat utils tests (#10598)
The shared vitest config already restores stubbed env values before every test, and check:test-patterns forbids vi.unstubAll*() in hooks; #10597's hook turned staging's lint red.
1 parent 5ec619e commit c6828db

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎apps/sim/app/api/chat/utils.test.ts‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
workflowsUtilsMock,
1313
} from '@sim/testing'
1414
import { rateLimiterMock, rateLimiterMockFns } from '@sim/testing/mocks/rate-limiter.mock'
15-
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
15+
import { beforeEach, describe, expect, it, vi } from 'vitest'
1616

1717
const {
1818
mockMergeSubblockStateWithValues,
@@ -70,10 +70,6 @@ describe('Chat API Utils', () => {
7070
vi.stubEnv('NODE_ENV', 'development')
7171
})
7272

73-
afterEach(() => {
74-
vi.unstubAllEnvs()
75-
})
76-
7773
describe('Auth token utils', () => {
7874
it('should reject invalid auth cookie via validateChatAuth', async () => {
7975
mockReadDeploymentAuthToken.mockResolvedValue(null)

0 commit comments

Comments
 (0)