Skip to content

Commit e876dd0

Browse files
author
Test User
committed
test(webview-settings): increase change-detection test timeout to resolve CI flakes
1 parent 57ff033 commit e876dd0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

webview-ui/src/components/settings/__tests__/SettingsView.change-detection.spec.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
import { act, render, screen, fireEvent, waitFor } from "@testing-library/react"
1+
import { act, render, screen, fireEvent, waitFor, configure } from "@testing-library/react"
22
import { vi, describe, it, expect, beforeEach } from "vitest"
33
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"
44
import React from "react"
55

6+
// Increase timeout for slow CI environments
7+
configure({ asyncUtilTimeout: 10000 })
8+
69
// Mock vscode API
710
const mockPostMessage = vi.hoisted(() => vi.fn())
811
const mockVscode = {

0 commit comments

Comments
 (0)