fix: test

This commit is contained in:
Dhravya Shah 2025-12-29 10:52:10 -08:00 committed by Mahesh Sanikommmu
parent 2391676425
commit 300a5504e9
7 changed files with 31 additions and 5 deletions

View file

@ -5,7 +5,7 @@ import "@ui/globals.css"
import { AuthProvider } from "@lib/auth-context"
import { ErrorTrackingProvider } from "@lib/error-tracking"
import { PostHogProvider } from "@lib/posthog"
import { QueryProvider } from "@lib/query-client"
import { QueryProvider } from "../components/query-client"
import { AutumnProvider } from "autumn-js/react"
import { Suspense } from "react"
import { Toaster } from "sonner"

View file

@ -52,7 +52,7 @@ export function InputStep({
inputPlaceholder="your name"
className="w-full flex-1"
inputProps={{
value: name,
defaultValue: name,
onKeyDown: (e) => {
if (e.key === "Enter") {
handleSubmit()

View file

@ -0,0 +1,24 @@
"use client"
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"
import { ReactQueryDevtools } from "@tanstack/react-query-devtools"
import { useState } from "react"
export const QueryProvider = ({ children }: { children: React.ReactNode }) => {
const [queryClient] = useState(
() =>
new QueryClient({
defaultOptions: {
queries: {
refetchIntervalInBackground: false,
refetchOnWindowFocus: false,
staleTime: 60 * 1000,
},
},
}),
)
return (
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
)
}

View file

@ -44,7 +44,7 @@
"@sentry/nextjs": "^10.22.0",
"@tailwindcss/typography": "^0.5.16",
"@tanstack/react-form": "^1.12.4",
"@tanstack/react-query": "^5.81.2",
"@tanstack/react-query": "^5.90.14",
"@tanstack/react-query-devtools": "^5.84.2",
"@tanstack/react-table": "^8.21.3",
"@tanstack/react-virtual": "^3.13.12",

View file

@ -4,7 +4,7 @@
"version": "1.0.8",
"scripts": {
"build": "tsdown",
"dev": "tsdown --watch",
"dev": "tsdown --watch --ignore-watch .turbo",
"check-types": "tsc --noEmit",
"test": "vitest",
"test:watch": "vitest --watch"

View file

@ -7,6 +7,8 @@
"@ai-sdk/anthropic": "^1.2.12",
"@ai-sdk/google": "^1.2.22",
"@ai-sdk/groq": "^1.2.9",
"@tanstack/react-query": "^5.90.14",
"@tanstack/react-query-devtools": "^5.84.2",
"ai-gateway-provider": "^0.0.11"
}
}

View file

@ -5,7 +5,7 @@
"description": "Memory tools for AI SDK and OpenAI function calling with supermemory",
"scripts": {
"build": "tsdown",
"dev": "tsdown --watch",
"dev": "tsdown --watch --ignore-watch .turbo",
"check-types": "tsc --noEmit",
"test": "vitest --testTimeout 100000",
"test:watch": "vitest --watch --testTimeout 100000"