Hello, user {personId}
This is a place where you can list the hobbies you like
-
+
{isPersonHobbiesPending ? "Adding hobby..." : null}
{personHobbiesError ?
There was an error adding the hobby
: null}
-
+
Hobbies
+ {personHobbies?.length ? null :
There are no hobbies
}
{personHobbies?.map((hobby) => - {hobby.name}
)}
diff --git a/vite.config.ts b/vite.config.ts
index 0e43ae8..612337d 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1,7 +1,16 @@
-import { defineConfig } from "vite";
+import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
+ test: {
+ setupFiles: ["./src/utils/testing-utils/setup.ts"],
+ browser: {
+ enabled: true,
+ instances: [
+ { browser: 'chromium' },
+ ],
+ },
+ }
});