// SPDX-License-Identifier: AGPL-3.0-only // Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0 import path from "node:path"; import react from "@vitejs/plugin-react"; import { defineConfig } from "vitest/config"; export default defineConfig({ plugins: [react()], resolve: { alias: { "@": path.resolve(__dirname, "./src"), }, }, test: { environment: "jsdom", globals: true, css: false, include: ["src/**/*.{test,spec}.{ts,tsx}"], setupFiles: ["./src/test-setup/setup.ts"], }, });