spb/vquant Public MIT
VibeQuant — AI-powered institutional-grade financial intelligence platform.
TypeScript 84.3%
Python 11.7%
JavaScript 1.6%
CSS 1.5%
HTML 0.7%
1/*2 * =============================================================================3 * VibeQuant (vquant) — AI-Powered Financial Intelligence Platform4 * -----------------------------------------------------------------------------5 * File: client/src/lib/queryClient.test.ts6 *7 * Author: Simon-Pierre Boucher8 * Contact: contact@spboucher.ai9 * Website: https://www.spboucher.ai10 * Demo: https://www.vquant.ai11 * License: MIT (see LICENSE)12 *13 * Copyright © 2026 Simon-Pierre Boucher. All rights reserved.14 * =============================================================================15 */1617import { describe, it, expect } from "vitest";18import { queryClient } from "./queryClient";1920describe("queryClient", () => {21 it("is defined", () => {22 expect(queryClient).toBeDefined();23 });2425 it("has staleTime set to 5 minutes", () => {26 const defaults = queryClient.getDefaultOptions();27 expect(defaults.queries?.staleTime).toBe(5 * 60 * 1000);28 });2930 it("has gcTime set to 30 minutes", () => {31 const defaults = queryClient.getDefaultOptions();32 expect(defaults.queries?.gcTime).toBe(30 * 60 * 1000);33 });3435 it("has retry set to 1", () => {36 const defaults = queryClient.getDefaultOptions();37 expect(defaults.queries?.retry).toBe(1);38 });3940 it("has mutation retry disabled", () => {41 const defaults = queryClient.getDefaultOptions();42 expect(defaults.mutations?.retry).toBe(false);43 });4445 it("does not refetch on window focus", () => {46 const defaults = queryClient.getDefaultOptions();47 expect(defaults.queries?.refetchOnWindowFocus).toBe(false);48 });49});50