diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/.gitignore b/07_js-debug/uebungen/u17-19_vitest-shop-tests/.gitignore
new file mode 100644
index 0000000..a547bf3
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/.gitignore
@@ -0,0 +1,24 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
+lerna-debug.log*
+
+node_modules
+dist
+dist-ssr
+*.local
+
+# Editor directories and files
+.vscode/*
+!.vscode/extensions.json
+.idea
+.DS_Store
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/.oxlintrc.json b/07_js-debug/uebungen/u17-19_vitest-shop-tests/.oxlintrc.json
new file mode 100644
index 0000000..6fa991d
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/.oxlintrc.json
@@ -0,0 +1,8 @@
+{
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
+ "plugins": ["react", "typescript", "oxc"],
+ "rules": {
+ "react/rules-of-hooks": "error",
+ "react/only-export-components": ["warn", { "allowConstantExport": true }]
+ }
+}
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/README.md b/07_js-debug/uebungen/u17-19_vitest-shop-tests/README.md
new file mode 100644
index 0000000..355e0e2
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/README.md
@@ -0,0 +1,35 @@
+# React + TypeScript + Vite
+
+This template provides a minimal setup to get React working in Vite with HMR and some Oxlint rules.
+
+Currently, two official plugins are available:
+
+- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs)
+- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/)
+
+## React Compiler
+
+The React Compiler is enabled on this template. See [this documentation](https://react.dev/learn/react-compiler) for more information.
+
+Note: This will impact Vite dev & build performances.
+You can also try [the experimental native React Compiler support in plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md#rust-react-compiler) by using `compiler: true` in the plugin options instead of using the Babel plugin.
+
+## Expanding the Oxlint configuration
+
+If you are developing a production application, we recommend enabling type-aware lint rules by installing `oxlint-tsgolint` and editing `.oxlintrc.json`:
+
+```json
+{
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
+ "plugins": ["react", "typescript", "oxc"],
+ "options": {
+ "typeAware": true
+ },
+ "rules": {
+ "react/rules-of-hooks": "error",
+ "react/only-export-components": ["warn", { "allowConstantExport": true }]
+ }
+}
+```
+
+See the [Oxlint rules documentation](https://oxc.rs/docs/guide/usage/linter/rules) for the full list of rules and categories.
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/index.html b/07_js-debug/uebungen/u17-19_vitest-shop-tests/index.html
new file mode 100644
index 0000000..8984afb
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/index.html
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+ Übung 17 - Übung 19 - Komponententests
+
+
+
+
+
+
+
+
Übung 17: ImageGallery Benutzerinteraktionstest
+
+ In dieser Übung ist es deine Aufgabe, einen neuen Testfall zu ImageGallery.test.tsx hinzuzufügen,
+ in dem du testest, ob sich die Bilder ändern, wenn die Pfeiltasten gedrückt werden (Benutzerverhalten).
+
+
+ Wenn du den Shop öffnest und zu einem beliebigen Produkt gehst und die Pfeiltasten benutzt, solltest du die
+ Bilder ändern können. Du kannst dies mit der Methode .keyboard('{ArrowRight}') oder
+ .keyboard('{ArrowLeft}') tun.
+
+
Das folgende Verhalten sollte getestet werden:
+
+
+ Du musst zum zweiten Bild gehen können, wenn du die rechte Pfeiltaste drückst. Überprüfe das Attribut src.
+
+ Gehe zurück zum ersten Bild nach Schritt 1.
+
+ Wenn du nach den Schritten 1 und 2 die linke Pfeiltaste drückst, wird das letzte Bild angezeigt.
+
+
+
+
Übung 18: Test der Footer-Komponente
+
+ Deine Aufgabe ist es, einen Unit-Test für die Footer-Komponente in src/components/Footer.tsx zu
+ schreiben. Der Test sollte einen Fall enthalten, der die korrekte Darstellung der Navigationselemente
+ überprüft.
+
+
+ Verwende dein eigenes, benutzerdefiniertes Array für Navigationselemente.
+ Stelle sicher, dass alle Linktexte wie erwartet dargestellt werden.
+
+
+
+
Übung 19: CategorySection Komponentenprüfung
+
+ Deine Aufgabe ist es, einen Unit-Test für die Komponente Category Section in
+ src/components/CategorySection.tsx zu schreiben. Der Test sollte zwei Testfälle enthalten, die
+ auf Folgendes testen:
+
+
+ Der erste Testfall sollte die Überschrift des Kategoriebereichs prüfen
+ Der zweite Testfall sollte prüfen, ob alle drei Links und Bilder gerendert werden.
+ Verwende das untenstehende Kategorienfeld, um den Test zu erstellen.
+
+
+
+
+
+
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/package.json b/07_js-debug/uebungen/u17-19_vitest-shop-tests/package.json
new file mode 100644
index 0000000..91bb51f
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/package.json
@@ -0,0 +1,39 @@
+{
+ "name": "04_vite-shop",
+ "private": true,
+ "version": "0.0.0",
+ "type": "module",
+ "scripts": {
+ "test": "vitest",
+ "test:watch": "vitest --watch",
+ "test:ui": "vitest --ui",
+ "dev": "vite",
+ "build": "tsc -b && vite build",
+ "lint": "oxlint",
+ "preview": "vite preview"
+ },
+ "dependencies": {
+ "react": "^19.3.1",
+ "react-dom": "^19.3.1",
+ "react-router-dom": "^7.18.5"
+ },
+ "devDependencies": {
+ "@babel/core": "^8.1.0",
+ "@rolldown/plugin-babel": "^0.3.0",
+ "@testing-library/jest-dom": "^7.0.1",
+ "@testing-library/react": "^16.3.3",
+ "@testing-library/user-event": "^14.6.8",
+ "@types/babel__core": "^7.20.5",
+ "@types/node": "^26.6.6",
+ "@types/react": "^19.3.0",
+ "@types/react-dom": "^19.3.0",
+ "@vitejs/plugin-react": "^6.2.1",
+ "@vitest/ui": "^5.1.0",
+ "babel-plugin-react-compiler": "^1.0.0",
+ "jsdom": "^30.1.3",
+ "oxlint": "^1.91.0",
+ "typescript": "~7.0.2",
+ "vite": "^8.3.6",
+ "vitest": "^5.1.0"
+ }
+}
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/public/favicon.svg b/07_js-debug/uebungen/u17-19_vitest-shop-tests/public/favicon.svg
new file mode 100644
index 0000000..6893eb1
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/public/favicon.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/public/icons.svg b/07_js-debug/uebungen/u17-19_vitest-shop-tests/public/icons.svg
new file mode 100644
index 0000000..e952219
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/public/icons.svg
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/App.tsx b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/App.tsx
new file mode 100644
index 0000000..dcbbc55
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/App.tsx
@@ -0,0 +1,39 @@
+import { createBrowserRouter, RouterProvider } from 'react-router-dom';
+import Homepage from './pages/root';
+import WomenProducts from './pages/women';
+import MenProducts from './pages/men';
+import AccessoryProducts from './pages/accessories';
+import ProductPage from './pages/product';
+
+const router = createBrowserRouter([
+ {
+ path: '/',
+ element: ,
+ },
+ {
+ path: '/women',
+ element: ,
+ },
+ {
+ path: '/men',
+ element: ,
+ },
+ {
+ path: '/accessories',
+ element: ,
+ },
+ {
+ path: '/products/:productId',
+ element: ,
+ },
+]);
+
+function App() {
+ return (
+ <>
+
+ >
+ );
+}
+
+export default App;
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/assets/react.svg b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/assets/react.svg
new file mode 100644
index 0000000..6c87de9
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/assets/react.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/assets/vite.svg b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/assets/vite.svg
new file mode 100644
index 0000000..5101b67
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/assets/vite.svg
@@ -0,0 +1 @@
+Vite
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/components/CategorySection.tsx b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/components/CategorySection.tsx
new file mode 100644
index 0000000..4fb8862
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/components/CategorySection.tsx
@@ -0,0 +1,77 @@
+import React from 'react';
+
+type CategorySectionProps = {
+ categories: {
+ imgSrc: string;
+ imgAlt: string;
+ href: string;
+ linkText: string;
+ }[];
+};
+
+import { Link } from 'react-router-dom';
+
+const CategorySection: React.FC = ({ categories }) => {
+ return (
+
+
+
+ Explore by Category
+
+
+
+
+
+
+
+
+
+
+
+
+ {categories[0].linkText}
+
+
+ Shop now
+
+
+
+
+
+ {categories.slice(1).map((category, index) => (
+
+
+
+
+
+
+
+
+ {category.linkText}
+
+
+
+ Shop now
+
+
+
+
+ ))}
+
+
+
+ );
+};
+
+export default CategorySection;
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/components/Footer.tsx b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/components/Footer.tsx
new file mode 100644
index 0000000..86ea22e
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/components/Footer.tsx
@@ -0,0 +1,55 @@
+import React from 'react';
+import { Link } from 'react-router-dom';
+
+type NavigationItem = {
+ name: string;
+ href: string;
+};
+
+const navigationItems: NavigationItem[] = [
+ {
+ name: 'Home',
+ href: '/',
+ },
+ {
+ name: 'Women',
+ href: '/women',
+ },
+ {
+ name: 'Men',
+ href: '/men',
+ },
+ {
+ name: 'Accessories',
+ href: '/accessories',
+ },
+];
+
+type FooterProps = {
+ navigation?: NavigationItem[];
+};
+
+const Footer: React.FC = ({ navigation = navigationItems }) => {
+ return (
+
+ );
+};
+
+export default Footer;
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/components/Header.tsx b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/components/Header.tsx
new file mode 100644
index 0000000..ae21fd5
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/components/Header.tsx
@@ -0,0 +1,53 @@
+import { Link } from 'react-router-dom';
+
+const Header = () => {
+ return (
+
+ );
+};
+
+export default Header;
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/components/Hero.tsx b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/components/Hero.tsx
new file mode 100644
index 0000000..afa8772
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/components/Hero.tsx
@@ -0,0 +1,23 @@
+import React from 'react';
+
+type HeroProps = {
+ companyName?: string;
+};
+
+const Hero: React.FC = ({ companyName = 'Vogue Junction' }) => {
+ return (
+
+
+
Welcome to the world of {companyName}!
+
+ Discover a diverse collection of stylish products for everyone. From
+ trendy apparel and accessories to timeless classics, we offer
+ something for every taste and occasion. Shop now and elevate your
+ style!
+
+
+
+ );
+};
+
+export default Hero;
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/components/ImageGallery.tsx b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/components/ImageGallery.tsx
new file mode 100644
index 0000000..10a9671
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/components/ImageGallery.tsx
@@ -0,0 +1,71 @@
+import React, { useState, useEffect } from 'react';
+import type { Product } from '../lib/datatypes';
+
+type ImageGalleryProps = {
+ product: Product;
+};
+
+const ImageGallery: React.FC = ({ product }: { product: Product }) => {
+ const [selectedImage, setSelectedImage] = useState(product.images[0]);
+ const [selectedIndex, setSelectedIndex] = useState(0);
+
+ const handleKeyDown = (event: KeyboardEvent) => {
+ if (event.key === 'ArrowRight') {
+ setSelectedIndex((prevIndex) => {
+ const nextIndex = (prevIndex + 1) % product.images.length;
+ setSelectedImage(product.images[nextIndex]);
+ return nextIndex;
+ });
+ }
+
+ if (event.key === 'ArrowLeft') {
+ setSelectedIndex((prevIndex) => {
+ const nextIndex = (prevIndex - 1 + product.images.length) % product.images.length;
+ setSelectedImage(product.images[nextIndex]);
+ return nextIndex;
+ });
+ }
+ };
+
+ useEffect(() => {
+ window.addEventListener('keydown', handleKeyDown);
+
+ return () => {
+ window.removeEventListener('keydown', handleKeyDown);
+ };
+ }, [product.images]);
+
+ return (
+
+ {/* Image selector */}
+
+
+ {product.images.map((image, index) => (
+
{
+ setSelectedImage(image);
+ setSelectedIndex(index);
+ }}>
+ {image}
+
+
+
+
+ ))}
+
+
+
+ {/* Main Image Display */}
+
+
+
+
+ );
+};
+
+export default ImageGallery;
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/components/ProductList.tsx b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/components/ProductList.tsx
new file mode 100644
index 0000000..3859b46
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/components/ProductList.tsx
@@ -0,0 +1,24 @@
+import React from 'react';
+import type { Product } from '../lib/datatypes';
+
+import ProductListCard from './ProductListCard';
+
+type ProductListProps = {
+ data: Product[];
+};
+
+const ProductList: React.FC = ({ data }) => {
+ return (
+
+
Products
+
+
+ {data.map((product) => (
+
+ ))}
+
+
+ );
+};
+
+export default ProductList;
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/components/ProductListCard.tsx b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/components/ProductListCard.tsx
new file mode 100644
index 0000000..7c22ad4
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/components/ProductListCard.tsx
@@ -0,0 +1,64 @@
+import React from 'react';
+import { Link } from 'react-router-dom';
+import type { Product } from '../lib/datatypes';
+
+const ProductListCard = ({ product }: { product: Product }) => {
+ const { id, title, price, rating, stock, thumbnail } = product;
+
+ return (
+
+
+
+
+
+
+
+
+
+ {title}
+
+
+
+
+
{Math.round(rating)} out of 5 stars
+
+
+ {[0, 1, 2, 3, 4].map((ratingNumber) => (
+ ratingNumber ? '#1e293b' : '#e5e7eb',
+ }}
+ aria-hidden="true"
+ />
+ ))}
+
+
+
{stock} in stock
+
+
+
+ {Number(price).toLocaleString('en-US', {
+ style: 'currency',
+ currency: 'USD',
+ })}
+
+
+
+ );
+};
+
+export default ProductListCard;
+
+function StarIcon(props: React.SVGProps) {
+ return (
+
+
+
+ );
+}
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/index.css b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/index.css
new file mode 100644
index 0000000..1b82055
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/index.css
@@ -0,0 +1,810 @@
+*,
+*::before,
+*::after {
+ box-sizing: border-box;
+}
+
+*,
+html,
+body {
+ margin: 0;
+ padding: 0;
+ font-family:
+ system-ui,
+ -apple-system,
+ BlinkMacSystemFont,
+ 'Segoe UI',
+ Roboto,
+ Oxygen,
+ Ubuntu,
+ Cantarell,
+ 'Open Sans',
+ 'Helvetica Neue',
+ sans-serif;
+ color: #0f172a;
+}
+
+button {
+ background-color: transparent;
+ border: none;
+}
+
+a {
+ text-decoration: none;
+ color: inherit;
+}
+
+header {
+ position: relative;
+ width: 100%;
+}
+
+footer {
+ border: 1px solid #e5e7eb;
+ border-top-width: 1px;
+ margin-top: 3.5rem /* 56px */;
+}
+
+.screen-reader-text {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
+ white-space: nowrap;
+ border-width: 0;
+}
+
+.star-icons {
+ height: 1.25rem /* 20px */;
+ width: 1.25rem /* 20px */;
+ flex-shrink: 0;
+}
+
+/* ===== Header Component ===== */
+.logo-text {
+ font-size: 1.25rem /* 20px */;
+ line-height: 1.75rem /* 28px */;
+ font-weight: 600;
+ color: #1f2937;
+}
+
+.header-container {
+ position: relative;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 1.5rem 1rem; /* 24px 16px */
+ max-width: 80rem; /* 1280px */
+ margin: 0 auto;
+}
+
+.mobile-header-wrapper {
+ display: block;
+}
+
+.mobile-header-links-container {
+ display: flex;
+ justify-content: center;
+ gap: 1.5rem; /* 24px */
+ padding-bottom: 1rem /* 16px */;
+}
+
+.mobile-header-logo-link {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 1rem; /* 16px */
+ width: 100%;
+}
+
+.desktop-header-wrapper {
+ display: none;
+}
+
+.desktop-header-logo-link {
+ display: flex;
+ align-items: center;
+ gap: 1rem; /* 16px */
+}
+
+.desktop-header-links-container {
+ position: absolute;
+ left: 50%;
+ transform: translateX(-50%);
+ display: flex;
+ gap: 1.5rem; /* 24px */
+}
+
+.header-link-text {
+ padding: 0.5rem /* 8px */;
+ color: #1f2937;
+}
+
+.header-link-text:hover {
+ color: #4b5563;
+}
+
+.header-border {
+ border-bottom-width: 2px;
+ width: 100%;
+ box-shadow:
+ 0 4px 6px -1px rgb(0 0 0 / 0.1),
+ 0 2px 4px -2px rgb(0 0 0 / 0.1);
+ border-color: #f3f4f6;
+}
+
+/* ===== Hero Component ===== */
+.hero-wrapper {
+ max-width: 42rem /* 672px */;
+ margin: 0 auto;
+ padding: 6rem 1rem; /* 96px 16px */
+}
+
+.hero-text-container {
+ text-align: center;
+}
+
+.hero-title {
+ font-size: 2.25rem /* 36px */;
+ line-height: 2.5rem /* 40px */;
+ font-weight: 700;
+ letter-spacing: -0.025em;
+ color: #111827;
+}
+
+.hero-subtitle {
+ margin-top: 2.5rem /* 40px */;
+ font-size: 1.125rem /* 18px */;
+ line-height: 2rem /* 32px */;
+ color: #4b5563;
+}
+
+/* ===== CategorySection Component ===== */
+.category-section-wrapper {
+ margin: 0 auto;
+ max-width: 80rem /* 1280px */;
+ padding: 2.5rem 1rem; /* 40px 16px */
+}
+
+.category-section-title {
+ font-size: 1.5rem /* 24px */;
+ line-height: 2rem /* 32px */;
+ font-weight: 700;
+ letter-spacing: -0.025em;
+ color: #111827;
+}
+
+.category-section-grid-wrapper {
+ margin-top: 1.5rem /* 24px */;
+ display: grid;
+ grid-template-columns: repeat(1, minmax(0, 1fr));
+ row-gap: 1.5rem /* 24px */;
+}
+
+.category-section-grid-main {
+ position: relative;
+ overflow: hidden;
+ border-radius: 0.5rem /* 8px */;
+ aspect-ratio: 1 / 2;
+ width: 100%;
+ height: 100%;
+ max-height: 250px;
+}
+
+.category-section-grid-main:hover {
+ opacity: 0.85;
+}
+
+.category-section-grid-main-img {
+ height: 100%;
+ width: 100%;
+ object-fit: cover;
+ object-position: top;
+ filter: grayscale(100%);
+}
+
+.category-section-gradient-bg {
+ position: absolute;
+ bottom: 0;
+ z-index: 100;
+ height: 100%;
+ width: 100%;
+ background: linear-gradient(to bottom, transparent, black);
+ opacity: 0.5;
+}
+
+.category-section-cta-container {
+ position: absolute;
+ z-index: 100;
+ bottom: 0;
+ display: flex;
+ align-items: flex-end;
+ padding: 1.5rem /* 24px */;
+}
+
+.category-section-cta-title {
+ font-weight: 600;
+ color: white;
+}
+
+.category-section-cta-span {
+ position: absolute;
+ inset: 0px;
+ z-index: 100;
+}
+
+.category-section-cta {
+ margin-top: 0.25rem /* 4px */;
+ font-size: 0.875rem /* 14px */;
+ line-height: 1.25rem /* 20px */;
+ color: white;
+}
+
+.category-section-categories-container {
+ position: relative;
+ aspect-ratio: 1 / 2;
+ overflow: hidden;
+ border-radius: 0.5rem /* 8px */;
+ height: 100%;
+ width: 100%;
+ max-height: 250px;
+}
+
+.category-section-categories-container:hover {
+ opacity: 0.85;
+}
+
+.category-section-categories-img {
+ height: 100%;
+ width: 100%;
+ object-fit: cover;
+ object-position: center;
+ filter: grayscale(100%);
+}
+
+.category-section-categories-cta-container {
+ position: absolute;
+ z-index: 100;
+ bottom: 0;
+ display: flex;
+ align-items: flex-end;
+ padding: 1.5rem; /* 24px */
+}
+
+/* ===== Footer Component ===== */
+.footer-wrapper {
+ margin: 0 auto;
+ max-width: 80rem /* 1280px */;
+ padding: 3rem 1.5rem; /* 48px 24px */
+}
+
+.footer-links-container {
+ display: flex;
+ justify-content: center;
+ gap: 1.5rem; /* 24px */
+}
+
+.footer-links-text {
+ color: #9ca3af;
+}
+
+.footer-links-text:hover {
+ color: #4b5563;
+}
+
+.footer-copyright {
+ margin-top: 2rem /* 32px */;
+}
+
+.footer-copyright-text {
+ text-align: center;
+ font-size: 0.75rem /* 12px */;
+ line-height: 1rem /* 16px */;
+ line-height: 1.25rem /* 20px */;
+ color: #6b7280;
+}
+
+/* ===== ProductList Component ===== */
+.products-list {
+ margin: 0 -1px;
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+}
+
+/* ===== ProductListCard Component ===== */
+.product-card-container {
+ position: relative;
+ padding: 1rem;
+}
+
+.product-card-img-wrapper {
+ aspect-ratio: 1 / 1;
+ overflow: hidden;
+ border-radius: 0.5rem /* 8px */;
+ background-color: white;
+}
+
+.product-card-container:hover .product-card-img-wrapper {
+ opacity: 0.75;
+}
+
+.product-card-img {
+ height: 100%;
+ width: 100%;
+ object-fit: cover;
+ object-position: center;
+}
+
+.product-card-info-box {
+ padding-bottom: 1rem /* 16px */;
+ padding-top: 2.5rem /* 40px */;
+ text-align: center;
+}
+
+.product-card-name {
+ font-size: 0.875rem /* 14px */;
+ line-height: 1.25rem /* 20px */;
+ font-weight: 500;
+ color: #111827;
+}
+
+.product-card-name-span {
+ position: absolute;
+ inset: 0px;
+}
+
+.product-card-desc-box {
+ margin-top: 0.75rem /* 12px */;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+}
+
+.product-card-ratings-wrapper {
+ display: flex;
+ align-items: center;
+}
+
+.product-card-stock {
+ margin-top: 0.25rem /* 4px */;
+ font-size: 0.875rem /* 14px */;
+ line-height: 1.25rem /* 20px */;
+ color: #6b7280;
+}
+
+.product-card-price {
+ margin-top: 1rem /* 16px */;
+ font-size: 1rem /* 16px */;
+ line-height: 1.5rem /* 24px */;
+ font-weight: 500;
+ color: #111827;
+}
+
+/* ===== ImageGallery Component ===== */
+.image-gallery-wrapper {
+ display: flex;
+ flex-direction: column-reverse;
+}
+
+.image-selector-wrapper {
+ margin-left: auto;
+ margin-right: auto;
+ margin-top: 1.5rem /* 24px */;
+ display: none;
+ width: 100%;
+ max-width: 42rem /* 672px */;
+}
+
+.image-selector-container {
+ display: grid;
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ gap: 1.5rem /* 24px */;
+}
+
+.image-selector-btn {
+ position: relative;
+ display: flex;
+ height: 6rem /* 96px */;
+ cursor: pointer;
+ align-items: center;
+ justify-content: center;
+ border-radius: 0.375rem /* 6px */;
+ background-color: white;
+ font-size: 0.875rem /* 14px */;
+ line-height: 1.25rem /* 20px */;
+ font-weight: 500;
+ text-transform: uppercase;
+ color: #111827;
+}
+
+.image-selector-btn:hover {
+ background-color: #f9fafb;
+}
+
+.image-selector-img-wrapper {
+ position: absolute;
+ inset: 0px;
+ display: flex;
+ overflow: hidden;
+ border-radius: 0.375rem /* 6px */;
+}
+
+.image-selector-img {
+ height: 100%;
+ width: 100%;
+ object-fit: cover;
+ object-position: center;
+}
+
+.image-selector-main-img-wrapper {
+ aspect-ratio: 1 / 1;
+ width: 100%;
+}
+
+.image-selector-main-img {
+ height: 100%;
+ width: 100%;
+ object-fit: cover;
+ object-position: center;
+}
+
+/* ===== Category Page ===== */
+.category-page-wrapper {
+ padding: 3.5rem 0; /* 56px 0 */
+}
+
+.category-page-container {
+ margin: 0 auto;
+ max-width: 80rem /* 1280px */;
+ overflow: hidden;
+ padding: 0 1rem; /* 0 16px */
+}
+
+.category-page-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: top;
+}
+
+.category-page-header-title {
+ font-size: 1.5rem /* 24px */;
+ line-height: 2rem /* 32px */;
+ font-weight: 700;
+ letter-spacing: -0.025em;
+ color: #111827;
+ margin-bottom: 2rem /* 32px */;
+}
+
+.category-page-select {
+ margin: 0.5rem 0; /* 8px 0 */
+ display: block;
+ width: 11rem /* 176px */;
+ border: 1px solid #d1d5db;
+ border-radius: 0.375rem /* 6px */;
+ padding-top: 0.5rem /* 8px */;
+ padding-bottom: 0.5rem /* 8px */;
+ color: #0f172a;
+}
+
+.category-page-select:focus {
+ border: 1px solid #1e293b;
+}
+
+.category-page-products-wrapper {
+ margin-top: 2.5rem /* 40px */;
+}
+
+/* ===== Single Product Page ===== */
+.back-button-wrapper {
+ margin: 0 auto;
+ max-width: 42rem /* 672px */;
+ padding-left: 1rem /* 16px */;
+ padding-right: 1rem /* 16px */;
+ padding-top: 2rem /* 32px */;
+}
+
+.back-button {
+ display: flex;
+ align-items: center;
+ margin-bottom: 1rem /* 16px */;
+ font-weight: 500;
+ margin-top: 1.5rem /* 24px */;
+}
+
+.back-button-icon {
+ height: 1.5rem /* 24px */;
+ width: 1.5rem /* 24px */;
+ stroke: #1e293b;
+}
+
+.back-button-icon-span {
+ margin-left: 0.75rem /* 12px */;
+ font-size: 1rem /* 16px */;
+ line-height: 1.5rem /* 24px */;
+}
+
+.product-page-wrapper {
+ margin: 0 auto;
+ max-width: 42rem /* 672px */;
+ padding: 2.5rem 1rem; /* 40px 16px */
+}
+
+.product-page-container {
+ display: block;
+}
+
+.product-page-info-container {
+ margin-top: 2.5rem /* 40px */;
+ padding-left: 1rem /* 16px */;
+ padding-right: 1rem /* 16px */;
+}
+
+.product-page-info-title {
+ font-size: 1.875rem /* 30px */;
+ line-height: 2.25rem /* 36px */;
+ font-weight: 700;
+ letter-spacing: -0.025em;
+ color: #111827;
+}
+
+.product-page-mt-3 {
+ margin-top: 0.75rem /* 12px */;
+}
+
+.product-page-mt-6 {
+ margin-top: 1.5rem /* 24px */;
+}
+
+.product-page-text {
+ font-size: 0.875rem /* 14px */;
+ line-height: 1.25rem /* 20px */;
+ color: #6b7280;
+}
+
+.product-page-info-price {
+ font-size: 1.875rem /* 30px */;
+ line-height: 2.25rem /* 36px */;
+ letter-spacing: -0.025em;
+ color: #111827;
+}
+
+.product-page-info-rating-container {
+ display: flex;
+ align-items: center;
+}
+
+.product-page-description {
+ font-size: 1rem /* 16px */;
+ line-height: 1.5rem /* 24px */;
+ line-height: 2;
+ color: #374151;
+}
+
+.product-page-tags-container {
+ display: flex;
+ align-items: center;
+ gap: 0.5rem; /* 8px */
+}
+
+.product-page-tag {
+ font-size: 0.75rem /* 12px */;
+ line-height: 1rem /* 16px */;
+ font-weight: 500;
+ text-transform: uppercase;
+ padding: 0.25rem 0.5rem;
+ border-radius: 9999px;
+ background-color: #1e293b;
+ color: white;
+}
+
+.product-page-reviews-wrapper {
+ margin-top: 3.5rem /* 56px */;
+}
+
+.product-page-reviews-title {
+ font-size: 1.5rem /* 24px */;
+ line-height: 2rem /* 32px */;
+ font-weight: 500;
+ color: #111827;
+}
+
+.product-page-reviews-container {
+ display: flex;
+ flex-direction: column;
+ gap: 1.25rem /* 20px */;
+ margin-top: 0.5rem /* 8px */;
+}
+
+.product-page-ratings-box {
+ display: flex;
+ align-items: center;
+}
+
+.product-page-reviews-text-box {
+ display: flex;
+ align-items: center;
+ gap: 1rem; /* 16px */
+ margin-top: 0.5rem /* 8px */;
+}
+
+.product-page-reviews-comment {
+ margin-top: 0.5rem /* 8px */;
+ font-size: 1.125rem /* 18px */;
+ line-height: 1.75rem /* 28px */;
+ color: #374151;
+}
+
+/* ===== Breakpoints ===== */
+@media (min-width: 640px) {
+ .desktop-header-container {
+ padding: 1.5rem 2rem; /* 24px 32px */
+ }
+
+ .hero-wrapper {
+ padding: 6rem 2rem; /* 96px 32px */
+ }
+
+ .hero-title {
+ font-size: 3.75rem /* 60px */;
+ line-height: 1;
+ }
+
+ .category-section-wrapper {
+ padding: 2.5rem 1.5rem; /* 40px 24px */
+ }
+
+ .category-section-grid-wrapper {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ grid-template-rows: repeat(2, minmax(0, 1fr));
+ column-gap: 1.5rem /* 24px */;
+ grid-row: span 2 / span 2;
+ }
+
+ .category-section-grid-main {
+ aspect-ratio: 1 / 1;
+ grid-row: span 2 / span 2;
+ max-height: 100%;
+ }
+
+ .category-section-grid-main-img {
+ object-position: center;
+ }
+
+ .category-section-categories-container {
+ position: relative;
+ max-height: 300px;
+ }
+
+ .category-section-categories-img {
+ position: absolute;
+ inset: 0px;
+ height: 100%;
+ width: 100%;
+ }
+
+ .category-section-categories-cta-container {
+ position: absolute;
+ inset: 0px;
+ }
+
+ .category-page-container {
+ padding: 0 1.5rem; /* 0 24px */
+ }
+
+ .products-list {
+ margin: 0;
+ }
+
+ .product-card-container {
+ padding: 1.5rem;
+ }
+
+ .back-button-wrapper {
+ padding-left: 1.5rem /* 24px */;
+ padding-right: 1.5rem /* 24px */;
+ }
+
+ .product-page-wrapper {
+ padding: 2.5rem 1.5rem; /* 40px 24px */
+ }
+
+ .image-selector-wrapper {
+ display: block;
+ }
+
+ .image-selector-main-img {
+ border-radius: 0.5rem /* 8px */;
+ }
+
+ .product-page-info-container {
+ margin-top: 4rem /* 64px */;
+ padding-left: 0px;
+ padding-right: 0px;
+ }
+}
+
+@media (min-width: 768px) {
+ footer {
+ margin-top: 5rem; /* 80px */
+ }
+
+ .mobile-header-wrapper {
+ display: none;
+ }
+
+ .desktop-header-wrapper {
+ display: block;
+ }
+
+ .logo-text {
+ font-size: 1.5rem /* 24px */;
+ line-height: 2rem /* 32px */;
+ }
+
+ .footer-wrapper {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 3rem 2rem; /* 48px 32px */
+ }
+
+ .footer-links-container {
+ order: 2;
+ }
+
+ .footer-copyright {
+ order: 1;
+ margin-top: 0;
+ }
+
+ .products-list {
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ }
+}
+
+@media (min-width: 1024px) {
+ footer {
+ margin-top: 6rem; /* 96px */
+ }
+
+ .category-section-wrapper {
+ padding: 2.5rem 2rem /* 40px 32px */;
+ }
+
+ .category-page-container {
+ padding: 0 2rem; /* 0 32px */
+ }
+
+ .products-list {
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ }
+
+ .back-button-wrapper {
+ max-width: 80rem /* 1280px */;
+ padding-left: 2rem /* 32px */;
+ padding-right: 2rem /* 32px */;
+ }
+
+ .product-page-wrapper {
+ padding: 2.5rem 2rem; /* 40px 32px */
+ max-width: 80rem /* 1280px */;
+ }
+
+ .product-page-container {
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ align-items: center;
+ column-gap: 2rem /* 32px */;
+ }
+
+ .image-selector-wrapper {
+ max-width: none;
+ }
+
+ .product-page-info-container {
+ margin-top: 0px;
+ }
+}
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/lib/datatypes.ts b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/lib/datatypes.ts
new file mode 100644
index 0000000..f0e5483
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/lib/datatypes.ts
@@ -0,0 +1,45 @@
+export interface Product {
+ id: number;
+ title: string;
+ description: string;
+ category: string;
+ price: number;
+ discountPercentage: number;
+ rating: number;
+ stock: number;
+ tags: string[];
+ brand: string;
+ sku: string;
+ weight: number;
+ dimensions: Dimensions;
+ warrantyInformation: string;
+ shippingInformation: string;
+ availabilityStatus: string;
+ reviews: Review[];
+ returnPolicy: string;
+ minimumOrderQuantity: number;
+ meta: Meta;
+ images: string[];
+ thumbnail: string;
+}
+
+export interface Dimensions {
+ width: number;
+ height: number;
+ depth: number;
+}
+
+export interface Review {
+ rating: number;
+ comment: string;
+ date: Date;
+ reviewerName: string;
+ reviewerEmail: string;
+}
+
+export interface Meta {
+ createdAt: Date;
+ updatedAt: Date;
+ barcode: string;
+ qrCode: string;
+}
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/lib/helpers.ts b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/lib/helpers.ts
new file mode 100644
index 0000000..2168c83
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/lib/helpers.ts
@@ -0,0 +1,12 @@
+import type { Product } from './datatypes';
+
+export const fetchProductsByCategory = async (category: string): Promise => {
+ try {
+ const response = await fetch(`https://dummyjson.com/products/category/${category}`);
+ const data = await response.json();
+ return data.products;
+ } catch (error) {
+ console.error(`Failed to fetch products for category ${category}:`, error);
+ return [];
+ }
+};
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/main.tsx b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/main.tsx
new file mode 100644
index 0000000..bef5202
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/main.tsx
@@ -0,0 +1,10 @@
+import { StrictMode } from 'react'
+import { createRoot } from 'react-dom/client'
+import './index.css'
+import App from './App.tsx'
+
+createRoot(document.getElementById('root')!).render(
+
+
+ ,
+)
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/pages/accessories.tsx b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/pages/accessories.tsx
new file mode 100644
index 0000000..036dd23
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/pages/accessories.tsx
@@ -0,0 +1,76 @@
+import { useState, useEffect } from 'react';
+
+import Header from '../components/Header';
+import ProductList from '../components/ProductList';
+import Footer from '../components/Footer';
+
+import type { Product } from '../lib/datatypes';
+import { fetchProductsByCategory } from '../lib/helpers';
+
+export default function AccessoryProducts() {
+ const [products, setProducts] = useState([]);
+ const [selectedCategory, setSelectedCategory] = useState('all');
+
+ const categories = ['all', 'mobile-accessories', 'sports-accessories', 'kitchen-accessories'];
+
+ const fetchProducts = async () => {
+ try {
+ const fetchedProducts =
+ selectedCategory === 'all'
+ ? await Promise.all(categories.slice(1).map(fetchProductsByCategory))
+ : await fetchProductsByCategory(selectedCategory);
+
+ const allProducts = Array.isArray(fetchedProducts) ? fetchedProducts.flat() : fetchedProducts;
+
+ setProducts(allProducts);
+ } catch (error) {
+ console.error('Failed to fetch products:', error);
+ }
+ };
+
+ useEffect(() => {
+ fetchProducts();
+ }, [selectedCategory]);
+
+ return (
+
+
+
+
+
+
+
+ Accessories
+
+
+
+
+ Category
+
+ setSelectedCategory(e.target.value)}>
+ {categories.map((category) => (
+
+ {category
+ .split('-')
+ .filter((word) => word !== 'accessories')
+ .map((word) => word.charAt(0).toUpperCase() + word.slice(1))
+ .join(' ')}
+
+ ))}
+
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/pages/men.tsx b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/pages/men.tsx
new file mode 100644
index 0000000..5f73e73
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/pages/men.tsx
@@ -0,0 +1,76 @@
+import { useState, useEffect } from 'react';
+
+import Header from '../components/Header';
+import ProductList from '../components/ProductList';
+import Footer from '../components/Footer';
+
+import type { Product } from '../lib/datatypes';
+import { fetchProductsByCategory } from '../lib/helpers';
+
+export default function MenProducts() {
+ const [products, setProducts] = useState([]);
+ const [selectedCategory, setSelectedCategory] = useState('all');
+
+ const categories = ['all', 'mens-shirts', 'mens-shoes', 'mens-watches'];
+
+ const fetchProducts = async () => {
+ try {
+ const fetchedProducts =
+ selectedCategory === 'all'
+ ? await Promise.all(categories.slice(1).map(fetchProductsByCategory))
+ : await fetchProductsByCategory(selectedCategory);
+
+ const allProducts = Array.isArray(fetchedProducts) ? fetchedProducts.flat() : fetchedProducts;
+
+ setProducts(allProducts);
+ } catch (error) {
+ console.error('Failed to fetch products:', error);
+ }
+ };
+
+ useEffect(() => {
+ fetchProducts();
+ }, [selectedCategory]);
+
+ return (
+
+
+
+
+
+
+
+ Men Products
+
+
+
+
+ Category
+
+ setSelectedCategory(e.target.value)}>
+ {categories.map((category) => (
+
+ {category
+ .split('-')
+ .filter((word) => word !== 'mens')
+ .map((word) => word.charAt(0).toUpperCase() + word.slice(1))
+ .join(' ')}
+
+ ))}
+
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/pages/product.tsx b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/pages/product.tsx
new file mode 100644
index 0000000..5538385
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/pages/product.tsx
@@ -0,0 +1,188 @@
+import { useState, useEffect } from 'react';
+import type { Product, Review } from '../lib/datatypes';
+
+import { useParams, useNavigate } from 'react-router-dom';
+
+import Header from '../components/Header';
+import ImageGallery from '../components/ImageGallery';
+import Footer from '../components/Footer';
+
+const ProductPage = () => {
+ const { productId } = useParams<{ productId: string }>();
+ const [product, setProduct] = useState(null);
+
+ const fetchProduct = async () => {
+ try {
+ const productRes = await fetch(`https://dummyjson.com/products/${productId}`);
+ const productData = await productRes.json();
+ setProduct(productData);
+ } catch (error) {
+ console.error('Failed to fetch products:', error);
+ }
+ };
+
+ useEffect(() => {
+ fetchProduct();
+ }, [productId]);
+
+ if (!product) {
+ return null;
+ }
+
+ return (
+
+
+
+
+
+
+
+
+
+
+ {/* Product info */}
+
+
{product.title}
+
+
+
Product information
+
+
+ {Number(product.price).toLocaleString('en-US', {
+ style: 'currency',
+ currency: 'USD',
+ })}
+
+
+ {/* Rating */}
+
+
Rating
+
+
+
+ {[0, 1, 2, 3, 4].map((rating) => (
+ rating ? '#1e293b' : '#e5e7eb',
+ }}
+ aria-hidden="true"
+ />
+ ))}
+
+
{product.rating} out of 5 stars
+
+
+
+ {/* Availability */}
+
+
{product.stock} in stock
+
+
+ {/* Description */}
+
+
Description
+
+
{product.description}
+
+
+ {/* Tags */}
+
+
Tags
+
+ {product.tags.map((tag) => (
+
+ {tag}
+
+ ))}
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
+
+export default ProductPage;
+
+function BackButton() {
+ const navigate = useNavigate();
+
+ return (
+
+ navigate(-1)} className="back-button">
+
+ Back
+
+
+ );
+}
+
+function Reviews({ reviews }: { reviews: Review[] }) {
+ return (
+
+
Reviews
+
+
+ {reviews.map((review, index) => (
+
+
+ {[0, 1, 2, 3, 4].map((rating) => (
+ rating ? '#1e293b' : '#e5e7eb',
+ }}
+ aria-hidden="true"
+ />
+ ))}
+
+
+
+
{review.reviewerName}
+
+
{new Date(review.date).toLocaleDateString()}
+
+
+
{review.comment}
+
+ ))}
+
+
+ );
+}
+
+function ChevronRightIcon(props: React.SVGProps) {
+ return (
+
+
+
+ );
+}
+
+function StarIcon(props: React.SVGProps) {
+ return (
+
+
+
+ );
+}
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/pages/root.tsx b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/pages/root.tsx
new file mode 100644
index 0000000..a20d395
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/pages/root.tsx
@@ -0,0 +1,39 @@
+import Header from '../components/Header';
+import Hero from '../components/Hero';
+import CategorySection from '../components/CategorySection';
+import Footer from '../components/Footer';
+
+const categories = [
+ {
+ imgSrc: 'https://images.unsplash.com/photo-1530011940847-04cba36df39f?q=80&w=1920',
+ imgAlt: 'Two female models sitting on a bed. Photo by Billie (@billiebodybrand) on Unsplash.',
+ href: '/women',
+ linkText: 'Women Clothing',
+ },
+ {
+ imgSrc: 'https://images.unsplash.com/photo-1595909315417-2edd382a56dc?q=80&w=1920',
+ imgAlt:
+ 'Jumping rope, smartphone, sports bra, a pair of sneakers, and a water bottle. Photo by erica steeves on Unsplash.',
+ href: '/accessories',
+ linkText: 'Accessories',
+ },
+ {
+ imgSrc: 'https://images.unsplash.com/photo-1467779009031-53938b78ca38?q=80&w=1920',
+ imgAlt: 'Group of men sitting in a van. Photo by Luke Porter on Unsplash.',
+ href: '/men',
+ linkText: 'Men Clothing',
+ },
+];
+
+export default function Root() {
+ return (
+ <>
+
+
+
+
+
+
+ >
+ );
+}
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/pages/women.tsx b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/pages/women.tsx
new file mode 100644
index 0000000..9c67db8
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/pages/women.tsx
@@ -0,0 +1,76 @@
+import { useState, useEffect } from 'react';
+
+import Header from '../components/Header';
+import ProductList from '../components/ProductList';
+import Footer from '../components/Footer';
+
+import type { Product } from '../lib/datatypes';
+import { fetchProductsByCategory } from '../lib/helpers';
+
+export default function WomenProducts() {
+ const [products, setProducts] = useState([]);
+ const [selectedCategory, setSelectedCategory] = useState('all');
+
+ const categories = ['all', 'womens-bags', 'womens-dresses', 'womens-shoes', 'womens-jewellery'];
+
+ const fetchProducts = async () => {
+ try {
+ const fetchedProducts =
+ selectedCategory === 'all'
+ ? await Promise.all(categories.slice(1).map(fetchProductsByCategory))
+ : await fetchProductsByCategory(selectedCategory);
+
+ const allProducts = Array.isArray(fetchedProducts) ? fetchedProducts.flat() : fetchedProducts;
+
+ setProducts(allProducts);
+ } catch (error) {
+ console.error('Failed to fetch products:', error);
+ }
+ };
+
+ useEffect(() => {
+ fetchProducts();
+ }, [selectedCategory]);
+
+ return (
+
+
+
+
+
+
+
+ Women Products
+
+
+
+
+ Category
+
+ setSelectedCategory(e.target.value)}>
+ {categories.map((category) => (
+
+ {category
+ .split('-')
+ .filter((word) => word !== 'womens')
+ .map((word) => word.charAt(0).toUpperCase() + word.slice(1))
+ .join(' ')}
+
+ ))}
+
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/Hero.test.tsx b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/Hero.test.tsx
new file mode 100644
index 0000000..806efc3
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/Hero.test.tsx
@@ -0,0 +1,36 @@
+import Hero from '../components/Hero';
+import { render, screen } from '@testing-library/react';
+import { it, expect, describe } from 'vitest';
+
+// import '@testing-library/jest-dom/vitest';
+
+// Test Suite
+describe('Hero', () => {
+ it('should render h1 element', () => {
+ render( );
+
+ const heading = screen.getByRole('heading', { level: 1 });
+ expect(heading).toBeInTheDocument();
+ });
+
+ it('should render the company name when passed', () => {
+ render( );
+
+ screen.debug();
+
+ // Arrange
+ const heading = screen.getByRole('heading', { level: 1 });
+
+ // Act & Assert
+ expect(heading).toHaveTextContent('My Company');
+ // expect(heading).toBeInTheDocument();
+ });
+
+ it('should render the company name "Vogue Junction" as default', () => {
+ render( );
+ // Arrange
+ const heading = screen.getByRole('heading', { level: 1 });
+ // Act & Assert
+ expect(heading).toHaveTextContent(/Vogue Junction/i);
+ });
+});
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/ImageGallery.test.tsx b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/ImageGallery.test.tsx
new file mode 100644
index 0000000..8418536
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/ImageGallery.test.tsx
@@ -0,0 +1,62 @@
+import { describe, it, expect } from 'vitest';
+// import { fireEvent } from '@testing-library/react';
+import { screen, render } from '@testing-library/react';
+import { userEvent } from '@testing-library/user-event';
+
+import { fakeProduct } from './__mocks__/product.mock';
+
+// component
+import ImageGallery from '../components/ImageGallery';
+
+const product = fakeProduct;
+
+const renderComponent = () => {
+ render( );
+ // screen.debug();
+
+ const images = screen.getAllByAltText(product.title);
+ return {
+ images,
+ mainImage: images[images.length - 1],
+ buttons: screen.getAllByRole('button'),
+ };
+};
+
+describe('ImageGallery', () => {
+ it('should render three buttons', () => {
+ // Arrange
+ const { buttons } = renderComponent();
+ // Act & Assert
+ expect(buttons).toHaveLength(3);
+ });
+ it('should render four images', () => {
+ // Arrange
+ const { images } = renderComponent();
+ // Act & Assert
+ expect(images).toHaveLength(4);
+ });
+ it('should render the first image as main image', () => {
+ // Arrange
+ const { mainImage } = renderComponent();
+
+ expect(mainImage).toBeInTheDocument();
+ expect(mainImage).toHaveAttribute(
+ 'src',
+ product.images[0], // 'https://cdn.dummyjson.com/products/images/womens-bags/Prada%20Women%20Bag/1.png',
+ );
+ });
+ it('should change the main image when the last image was clicked', async () => {
+ // Arrange
+ const { mainImage, buttons } = renderComponent();
+
+ const user = userEvent.setup();
+
+ // fireEvent.click(buttons[2]);
+ await user.click(buttons[2]); // best practice
+
+ expect(mainImage).toHaveAttribute(
+ 'src',
+ product.images[2], // 'https://cdn.dummyjson.com/products/images/womens-bags/Prada%20Women%20Bag/3.png',
+ );
+ });
+});
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/ProductList.test.tsx b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/ProductList.test.tsx
new file mode 100644
index 0000000..69a65ce
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/ProductList.test.tsx
@@ -0,0 +1,42 @@
+import { describe, it, expect } from 'vitest';
+
+import { fakeProducts } from './__mocks__/products.mock';
+import ProductList from '../components/ProductList';
+import { render, screen } from '@testing-library/react';
+
+import { MemoryRouter } from 'react-router-dom';
+
+const products = fakeProducts;
+
+describe('ProductList', () => {
+ it('should render the correct number of products', () => {
+ render(
+
+
+ ,
+ );
+
+ // screen.debug();
+ const headings = screen.getAllByRole('heading', { level: 3 });
+
+ expect(headings).toHaveLength(products.length);
+ });
+
+ it('should render the product list cards correctly with the title, image and price', () => {
+ render(
+
+
+ ,
+ );
+
+ products.forEach((product) => {
+ const { title, thumbnail, price } = product;
+ const image = screen.getByAltText(title);
+
+ expect(screen.getByText(title)).toBeInTheDocument(); // title
+ expect(image).toBeInTheDocument(); // image alt text
+ expect(image).toHaveAttribute('src', thumbnail); // image src
+ expect(screen.getByText(`$${price}`)).toBeInTheDocument(); // price
+ });
+ });
+});
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/__mocks__/categories.mock.ts b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/__mocks__/categories.mock.ts
new file mode 100644
index 0000000..ecda0ab
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/__mocks__/categories.mock.ts
@@ -0,0 +1,21 @@
+export const fakeCategories = [
+ {
+ imgSrc: 'https://images.unsplash.com/photo-1530011940847-04cba36df39f?q=80&w=1920',
+ imgAlt: 'Two female models sitting on a bed. Photo by Billie (@billiebodybrand) on Unsplash.',
+ href: '/women',
+ linkText: 'Women Clothing',
+ },
+ {
+ imgSrc: 'https://images.unsplash.com/photo-1595909315417-2edd382a56dc?q=80&w=1920',
+ imgAlt:
+ 'Jumping rope, smartphone, sports bra, a pair of sneakers, and a water bottle. Photo by erica steeves on Unsplash.',
+ href: '/accessories',
+ linkText: 'Accessories',
+ },
+ {
+ imgSrc: 'https://images.unsplash.com/photo-1467779009031-53938b78ca38?q=80&w=1920',
+ imgAlt: 'Group of men sitting in a van. Photo by Luke Porter on Unsplash.',
+ href: '/men',
+ linkText: 'Men Clothing',
+ },
+];
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/__mocks__/product.mock.ts b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/__mocks__/product.mock.ts
new file mode 100644
index 0000000..90bd312
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/__mocks__/product.mock.ts
@@ -0,0 +1,56 @@
+export const fakeProduct = {
+ id: 174,
+ title: 'Prada Women Bag',
+ description:
+ "The Prada Women Bag is an iconic designer bag that exudes elegance and luxury. Crafted with precision and featuring the Prada logo, it's a statement piece for fashion enthusiasts.",
+ category: 'womens-bags',
+ price: 599.99,
+ discountPercentage: 18.3,
+ rating: 3.52,
+ stock: 43,
+ tags: ['fashion accessories', 'designer bags'],
+ brand: 'Prada',
+ sku: 'WXX4YTJM',
+ weight: 4,
+ dimensions: { width: 23.45, height: 16.1, depth: 5.78 },
+ warrantyInformation: '1 week warranty',
+ shippingInformation: 'Ships overnight',
+ availabilityStatus: 'In Stock',
+ reviews: [
+ {
+ rating: 5,
+ comment: 'Excellent quality!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Samantha Howard',
+ reviewerEmail: 'samantha.howard@x.dummyjson.com',
+ },
+ {
+ rating: 4,
+ comment: 'Would buy again!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Henry Hill',
+ reviewerEmail: 'henry.hill@x.dummyjson.com',
+ },
+ {
+ rating: 3,
+ comment: 'Not worth the price!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Lucas Ramirez',
+ reviewerEmail: 'lucas.ramirez@x.dummyjson.com',
+ },
+ ],
+ returnPolicy: '7 days return policy',
+ minimumOrderQuantity: 1,
+ meta: {
+ createdAt: new Date('2024-05-23T08:56:21.627Z'),
+ updatedAt: new Date('2024-05-23T08:56:21.627Z'),
+ barcode: '4590351278063',
+ qrCode: 'https://assets.dummyjson.com/public/qr-code.png',
+ },
+ images: [
+ 'https://cdn.dummyjson.com/products/images/womens-bags/Prada%20Women%20Bag/1.png',
+ 'https://cdn.dummyjson.com/products/images/womens-bags/Prada%20Women%20Bag/2.png',
+ 'https://cdn.dummyjson.com/products/images/womens-bags/Prada%20Women%20Bag/3.png',
+ ],
+ thumbnail: 'https://cdn.dummyjson.com/products/images/womens-bags/Prada%20Women%20Bag/thumbnail.png',
+};
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/__mocks__/products.mock.ts b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/__mocks__/products.mock.ts
new file mode 100644
index 0000000..bfe6133
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/__mocks__/products.mock.ts
@@ -0,0 +1,168 @@
+export const fakeProducts = [
+ {
+ id: 174,
+ title: 'Prada Women Bag',
+ description:
+ "The Prada Women Bag is an iconic designer bag that exudes elegance and luxury. Crafted with precision and featuring the Prada logo, it's a statement piece for fashion enthusiasts.",
+ category: 'womens-bags',
+ price: 599.99,
+ discountPercentage: 18.3,
+ rating: 3.52,
+ stock: 43,
+ tags: ['fashion accessories', 'designer bags'],
+ brand: 'Prada',
+ sku: 'WXX4YTJM',
+ weight: 4,
+ dimensions: { width: 23.45, height: 16.1, depth: 5.78 },
+ warrantyInformation: '1 week warranty',
+ shippingInformation: 'Ships overnight',
+ availabilityStatus: 'In Stock',
+ reviews: [
+ {
+ rating: 5,
+ comment: 'Excellent quality!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Samantha Howard',
+ reviewerEmail: 'samantha.howard@x.dummyjson.com',
+ },
+ {
+ rating: 4,
+ comment: 'Would buy again!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Henry Hill',
+ reviewerEmail: 'henry.hill@x.dummyjson.com',
+ },
+ {
+ rating: 3,
+ comment: 'Not worth the price!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Lucas Ramirez',
+ reviewerEmail: 'lucas.ramirez@x.dummyjson.com',
+ },
+ ],
+ returnPolicy: '7 days return policy',
+ minimumOrderQuantity: 1,
+ meta: {
+ createdAt: new Date('2024-05-23T08:56:21.627Z'),
+ updatedAt: new Date('2024-05-23T08:56:21.627Z'),
+ barcode: '4590351278063',
+ qrCode: 'https://assets.dummyjson.com/public/qr-code.png',
+ },
+ images: [
+ 'https://cdn.dummyjson.com/products/images/womens-bags/Prada%20Women%20Bag/1.png',
+ 'https://cdn.dummyjson.com/products/images/womens-bags/Prada%20Women%20Bag/2.png',
+ 'https://cdn.dummyjson.com/products/images/womens-bags/Prada%20Women%20Bag/3.png',
+ ],
+ thumbnail: 'https://cdn.dummyjson.com/products/images/womens-bags/Prada%20Women%20Bag/thumbnail.png',
+ },
+ {
+ id: 90,
+ title: 'Puma Future Rider Trainers',
+ description:
+ 'The Puma Future Rider Trainers offer a blend of retro style and modern comfort. Perfect for casual wear, these trainers provide a fashionable and comfortable option for everyday use.',
+ category: 'mens-shoes',
+ price: 89.99,
+ discountPercentage: 3.64,
+ rating: 4.85,
+ stock: 10,
+ tags: ['footwear', 'casual shoes'],
+ brand: 'Puma',
+ sku: '64ORN32I',
+ weight: 8,
+ dimensions: { width: 14.58, height: 25.54, depth: 19.57 },
+ warrantyInformation: '2 year warranty',
+ shippingInformation: 'Ships in 1 month',
+ availabilityStatus: 'In Stock',
+ reviews: [
+ {
+ rating: 5,
+ comment: 'Very happy with my purchase!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Lucas Allen',
+ reviewerEmail: 'lucas.allen@x.dummyjson.com',
+ },
+ {
+ rating: 4,
+ comment: 'Awesome product!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Mason Pearson',
+ reviewerEmail: 'mason.pearson@x.dummyjson.com',
+ },
+ {
+ rating: 4,
+ comment: 'Very satisfied!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Hunter Gordon',
+ reviewerEmail: 'hunter.gordon@x.dummyjson.com',
+ },
+ ],
+ returnPolicy: '90 days return policy',
+ minimumOrderQuantity: 9,
+ meta: {
+ createdAt: new Date('2024-05-23T08:56:21.627Z'),
+ updatedAt: new Date('2024-05-23T08:56:21.627Z'),
+ barcode: '3562849555769',
+ qrCode: 'https://assets.dummyjson.com/public/qr-code.png',
+ },
+ images: [
+ 'https://cdn.dummyjson.com/products/images/mens-shoes/Puma%20Future%20Rider%20Trainers/1.png',
+ 'https://cdn.dummyjson.com/products/images/mens-shoes/Puma%20Future%20Rider%20Trainers/2.png',
+ 'https://cdn.dummyjson.com/products/images/mens-shoes/Puma%20Future%20Rider%20Trainers/3.png',
+ 'https://cdn.dummyjson.com/products/images/mens-shoes/Puma%20Future%20Rider%20Trainers/4.png',
+ ],
+ thumbnail: 'https://cdn.dummyjson.com/products/images/mens-shoes/Puma%20Future%20Rider%20Trainers/thumbnail.png',
+ },
+ {
+ id: 101,
+ title: 'Apple AirPods Max Silver',
+ description:
+ 'The Apple AirPods Max in Silver are premium over-ear headphones with high-fidelity audio, adaptive EQ, and active noise cancellation. Experience immersive sound in style.',
+ category: 'mobile-accessories',
+ price: 549.99,
+ discountPercentage: 11.7,
+ rating: 3.11,
+ stock: 7,
+ tags: ['electronics', 'over-ear headphones'],
+ brand: 'Apple',
+ sku: 'HPK82VDE',
+ weight: 4,
+ dimensions: { width: 7.73, height: 18.36, depth: 17.87 },
+ warrantyInformation: '3 months warranty',
+ shippingInformation: 'Ships in 1 month',
+ availabilityStatus: 'In Stock',
+ reviews: [
+ {
+ rating: 1,
+ comment: 'Waste of money!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Harper Kelly',
+ reviewerEmail: 'harper.kelly@x.dummyjson.com',
+ },
+ {
+ rating: 3,
+ comment: 'Not as described!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Abigail Rivera',
+ reviewerEmail: 'abigail.rivera@x.dummyjson.com',
+ },
+ {
+ rating: 5,
+ comment: 'Excellent quality!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Nora Russell',
+ reviewerEmail: 'nora.russell@x.dummyjson.com',
+ },
+ ],
+ returnPolicy: '90 days return policy',
+ minimumOrderQuantity: 2,
+ meta: {
+ createdAt: new Date('2024-05-23T08:56:21.627Z'),
+ updatedAt: new Date('2024-05-23T08:56:21.627Z'),
+ barcode: '9261269777547',
+ qrCode: 'https://assets.dummyjson.com/public/qr-code.png',
+ },
+ images: ['https://cdn.dummyjson.com/products/images/mobile-accessories/Apple%20AirPods%20Max%20Silver/1.png'],
+ thumbnail:
+ 'https://cdn.dummyjson.com/products/images/mobile-accessories/Apple%20AirPods%20Max%20Silver/thumbnail.png',
+ },
+];
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/add.test.ts b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/add.test.ts
new file mode 100644
index 0000000..cbdd6e1
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/add.test.ts
@@ -0,0 +1,11 @@
+import { describe, expect, it } from 'vitest';
+import { add } from '../utils/helpers';
+
+describe('add', () => {
+ it('should return 3 when 2 and 1 passed', () => {
+ expect(add(1, 2)).toBe(3);
+ });
+ it('should return 0.3 when 0.2 and 0.1 passed', () => {
+ expect(add(0.2, 0.1)).toBe(0.3);
+ });
+});
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/config/setupTests.ts b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/config/setupTests.ts
new file mode 100644
index 0000000..13ae235
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/config/setupTests.ts
@@ -0,0 +1,16 @@
+import { expect, afterEach } from 'vitest';
+import { cleanup } from '@testing-library/react';
+import * as matchers from '@testing-library/jest-dom/matchers';
+
+// types für Testfunktionen
+import '@testing-library/jest-dom/vitest';
+
+// add jest-dom matchers to expect
+expect.extend(matchers);
+
+// Add cleanup function to run after each test
+afterEach(() => {
+ cleanup();
+});
+
+// More setup code here, if needed
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/main.test.ts b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/main.test.ts
new file mode 100644
index 0000000..d9a601f
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/main.test.ts
@@ -0,0 +1,19 @@
+import { it, test, expect, describe } from 'vitest';
+
+// Testsuite
+describe('main', () => {
+ // Testcase
+ test('main should pass', () => {
+ // AAA
+ // Arrange
+ const initValue = true;
+ // Acting - Assertion
+ expect(initValue).toBe(true);
+ });
+
+ it('should return a number', () => {
+ expect(1).toBeTypeOf('number');
+ });
+});
+
+// console.log(fn()); // => true
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/multiply.test.ts b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/multiply.test.ts
new file mode 100644
index 0000000..129d176
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/tests/multiply.test.ts
@@ -0,0 +1,11 @@
+import { describe, expect, it } from 'vitest';
+import { multiply } from '../utils/helpers';
+
+describe('multiply', () => {
+ it('should return 10 when 2 and 5 are passed', () => {
+ expect(multiply(2, 5)).toBe(10);
+ });
+ it('should return a number', () => {
+ expect(multiply(1, 2)).toBeTypeOf('number');
+ });
+});
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/utils/helpers.ts b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/utils/helpers.ts
new file mode 100644
index 0000000..81bcc3a
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/src/utils/helpers.ts
@@ -0,0 +1,12 @@
+export const multiply = (a: number, b: number): number => {
+ return Number(a) * Number(b);
+};
+export const add = (a: number, b: number): number => {
+ return parseFloat((Number(a) + Number(b)).toFixed(10));
+};
+
+export default {
+ //multiply: multiply
+ multiply,
+ add,
+};
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/tsconfig.app.json b/07_js-debug/uebungen/u17-19_vitest-shop-tests/tsconfig.app.json
new file mode 100644
index 0000000..6830b6f
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/tsconfig.app.json
@@ -0,0 +1,26 @@
+{
+ "compilerOptions": {
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
+ "target": "es2023",
+ "lib": ["ES2023", "DOM"],
+ "module": "esnext",
+ "types": ["vite/client"],
+ "allowArbitraryExtensions": true,
+ "skipLibCheck": true,
+
+ /* Bundler mode */
+ "moduleResolution": "bundler",
+ "allowImportingTsExtensions": true,
+ "verbatimModuleSyntax": true,
+ "moduleDetection": "force",
+ "noEmit": true,
+ "jsx": "react-jsx",
+
+ /* Linting */
+ "noUnusedLocals": true,
+ "noUnusedParameters": true,
+ "erasableSyntaxOnly": true,
+ "noFallthroughCasesInSwitch": true
+ },
+ "include": ["src"]
+}
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/tsconfig.json b/07_js-debug/uebungen/u17-19_vitest-shop-tests/tsconfig.json
new file mode 100644
index 0000000..1ffef60
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/tsconfig.json
@@ -0,0 +1,7 @@
+{
+ "files": [],
+ "references": [
+ { "path": "./tsconfig.app.json" },
+ { "path": "./tsconfig.node.json" }
+ ]
+}
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/tsconfig.node.json b/07_js-debug/uebungen/u17-19_vitest-shop-tests/tsconfig.node.json
new file mode 100644
index 0000000..8455dcb
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/tsconfig.node.json
@@ -0,0 +1,23 @@
+{
+ "compilerOptions": {
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
+ "target": "es2023",
+ "lib": ["ES2023"],
+ "types": ["node"],
+ "skipLibCheck": true,
+
+ /* Bundler mode */
+ "module": "nodenext",
+ "allowImportingTsExtensions": true,
+ "verbatimModuleSyntax": true,
+ "moduleDetection": "force",
+ "noEmit": true,
+
+ /* Linting */
+ "noUnusedLocals": true,
+ "noUnusedParameters": true,
+ "erasableSyntaxOnly": true,
+ "noFallthroughCasesInSwitch": true
+ },
+ "include": ["vite.config.ts"]
+}
diff --git a/07_js-debug/uebungen/u17-19_vitest-shop-tests/vite.config.ts b/07_js-debug/uebungen/u17-19_vitest-shop-tests/vite.config.ts
new file mode 100644
index 0000000..3d7ece3
--- /dev/null
+++ b/07_js-debug/uebungen/u17-19_vitest-shop-tests/vite.config.ts
@@ -0,0 +1,13 @@
+import react, { reactCompilerPreset } from '@vitejs/plugin-react';
+import babel from '@rolldown/plugin-babel';
+import { defineConfig } from 'vitest/config'; // nicht mehr vite
+
+// https://vite.dev/config/
+export default defineConfig({
+ plugins: [react(), babel({ presets: [reactCompilerPreset()] })],
+ test: {
+ globals: true,
+ environment: 'jsdom',
+ setupFiles: './src/tests/config/setupTests.ts',
+ },
+});
diff --git a/07_js-debug/uebungen/uebungen-17-19_vitest-shop-tests.zip b/07_js-debug/uebungen/uebungen-17-19_vitest-shop-tests.zip
new file mode 100644
index 0000000..43ac711
Binary files /dev/null and b/07_js-debug/uebungen/uebungen-17-19_vitest-shop-tests.zip differ
diff --git a/07_js-debug/unterricht/tag44/01_vitest-shop/package-lock.json b/07_js-debug/unterricht/tag44/01_vitest-shop/package-lock.json
deleted file mode 100644
index defad9b..0000000
--- a/07_js-debug/unterricht/tag44/01_vitest-shop/package-lock.json
+++ /dev/null
@@ -1,2938 +0,0 @@
-{
- "name": "04_vite-shop",
- "version": "0.0.0",
- "lockfileVersion": 3,
- "requires": true,
- "packages": {
- "": {
- "name": "04_vite-shop",
- "version": "0.0.0",
- "dependencies": {
- "react": "^19.3.1",
- "react-dom": "^19.3.1",
- "react-router-dom": "^7.18.5"
- },
- "devDependencies": {
- "@babel/core": "^8.1.0",
- "@rolldown/plugin-babel": "^0.3.0",
- "@types/babel__core": "^7.20.5",
- "@types/node": "^26.6.6",
- "@types/react": "^19.3.0",
- "@types/react-dom": "^19.3.0",
- "@vitejs/plugin-react": "^6.2.1",
- "@vitest/ui": "^5.1.0",
- "babel-plugin-react-compiler": "^1.0.0",
- "oxlint": "^1.91.0",
- "typescript": "~7.0.2",
- "vite": "^8.3.6",
- "vitest": "^5.1.0"
- }
- },
- "node_modules/@babel/code-frame": {
- "version": "8.0.6",
- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-8.0.6.tgz",
- "integrity": "sha512-uMHhvmDmwFiLuiozaoRYTZHqMFuu3fem/X9JY78lohAuLoh8LSGGC8JqUzo2cVuBsBxkjMZNk56CE7ock8Xxkw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/helper-validator-identifier": "^8.0.6",
- "js-tokens": "^10.0.0"
- },
- "engines": {
- "node": "^22.18.0 || >=24.11.0"
- }
- },
- "node_modules/@babel/compat-data": {
- "version": "8.0.5",
- "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-8.0.5.tgz",
- "integrity": "sha512-YLsYoQMvL8l8WrGpN3Zj7O1wK5LEBN+cQtux7BcuHyxIXve724XG+zuJ1n3U1cUweRtTzQOA4IHbuQw3N34SZw==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": "^22.18.0 || >=24.11.0"
- }
- },
- "node_modules/@babel/core": {
- "version": "8.1.0",
- "resolved": "https://registry.npmjs.org/@babel/core/-/core-8.1.0.tgz",
- "integrity": "sha512-3jqm7xh3kJCmIeOK8sk6/EvOWdSzvOqvjt0tJEDOHHmzWjcQSvIh2/tq1I9RA741tl0QZdMzPJWCulWE+Dy5ww==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/code-frame": "^8.0.6",
- "@babel/generator": "^8.1.0",
- "@babel/helper-compilation-targets": "^8.0.7",
- "@babel/helpers": "^8.1.0",
- "@babel/parser": "^8.1.0",
- "@babel/template": "^8.0.0",
- "@babel/traverse": "^8.1.0",
- "@babel/types": "^8.1.0",
- "@types/gensync": "^1.0.5",
- "convert-source-map": "^2.0.0",
- "empathic": "^2.0.1",
- "gensync": "^1.0.0-beta.2",
- "import-meta-resolve": "^4.2.0",
- "json5": "^2.2.3",
- "obug": "^3.0.0",
- "verkit": "^0.5.0"
- },
- "engines": {
- "node": "^22.18.0 || >=24.11.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/babel"
- }
- },
- "node_modules/@babel/generator": {
- "version": "8.1.0",
- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-8.1.0.tgz",
- "integrity": "sha512-7fiBJ61wDV3AHbg7n/EfLBv3RU+lsdRP8QNJnydkKWA7e48FnnvKQWbVHsJQCBE7JHTj4xlzZL9fvQYsBUip2A==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/parser": "^8.1.0",
- "@babel/types": "^8.1.0",
- "@jridgewell/gen-mapping": "0.4.0-beta.0",
- "@jridgewell/trace-mapping": "^0.3.31",
- "@types/jsesc": "^2.5.0",
- "jsesc": "^3.0.2"
- },
- "engines": {
- "node": "^22.18.0 || >=24.11.0"
- }
- },
- "node_modules/@babel/helper-compilation-targets": {
- "version": "8.0.7",
- "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-8.0.7.tgz",
- "integrity": "sha512-ilAZCdOOlOVA7dQbaFNw2f/59p6GW33NxTopc3DvEE3efp3ZXTrGX/yZScaKw8/vd9bq31Ag0EcXiLw32bAgJg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/compat-data": "^8.0.5",
- "@babel/helper-validator-option": "^8.0.0",
- "browserslist": "^4.24.0",
- "flru": "1.0.2",
- "verkit": "^0.5.0"
- },
- "engines": {
- "node": "^22.18.0 || >=24.11.0"
- }
- },
- "node_modules/@babel/helper-globals": {
- "version": "8.0.6",
- "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-8.0.6.tgz",
- "integrity": "sha512-OdnA/N52LhzFpeUuVz5YGuSWjc7TPHiFmVYZbPlSgExocO2GwbxVpSni9MVs5wwW+wZ4kPuwBEBN9pIPDYz1mA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": "^22.18.0 || >=24.11.0"
- }
- },
- "node_modules/@babel/helper-string-parser": {
- "version": "8.0.8",
- "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-8.0.8.tgz",
- "integrity": "sha512-fVM+gSuKbdv9cpmyRNh5EvsDHUZCdxQH3FdnFKSkNYHpbsn95bbrxm+ES3MVeQjcqwi2O5ur/DjLfmTQaO60ng==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": "^22.18.0 || >=24.11.0"
- }
- },
- "node_modules/@babel/helper-validator-identifier": {
- "version": "8.0.6",
- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-8.0.6.tgz",
- "integrity": "sha512-HYx0YmuchRxRSpnjvcNffnPS8DCauKNmnumIuHG3jnQAVewRA7kfJGwF13ayEpSZs7s4R/oBH4eppuXcAQd5JQ==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": "^22.18.0 || >=24.11.0"
- }
- },
- "node_modules/@babel/helper-validator-option": {
- "version": "8.0.0",
- "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-8.0.0.tgz",
- "integrity": "sha512-U4Dybxh4WESWHt5XhBeExi4DrY0/DNK1aHpQbsrQXCUbFHuMweT0TpLEWKvaraV2Y6fS+ZXunsZ8zIuZIgvF2Q==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": "^22.18.0 || >=24.11.0"
- }
- },
- "node_modules/@babel/helpers": {
- "version": "8.1.0",
- "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-8.1.0.tgz",
- "integrity": "sha512-949bjw10dhaRdtQeCpfVShFA4jIcto97BkqmWnRjpzyQuHVZ7EDriaoCn/4D8h1NqSKlmI20xPU0vHf3jQbQRg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/template": "^8.0.0",
- "@babel/types": "^8.1.0"
- },
- "engines": {
- "node": "^22.18.0 || >=24.11.0"
- }
- },
- "node_modules/@babel/parser": {
- "version": "8.1.0",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-8.1.0.tgz",
- "integrity": "sha512-fpqZYAC+Tthr19JbEKxXhCGutvfm/+roMe+ULrgUKI+GVyzkQiTMTSheORcWIAzW8T3Oo3W5UavWSvAWmsp7fA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/types": "^8.1.0"
- },
- "bin": {
- "parser": "bin/babel-parser.js"
- },
- "engines": {
- "node": "^22.18.0 || >=24.11.0"
- }
- },
- "node_modules/@babel/template": {
- "version": "8.0.0",
- "resolved": "https://registry.npmjs.org/@babel/template/-/template-8.0.0.tgz",
- "integrity": "sha512-eAD0QW/AlbamBbw0FeGiwasbCVPq5ncW0HNVyLP3B9czqLyh4gvw+5JTSNt6le9+ziAU7mqDZsKTHf3jTb4chQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/code-frame": "^8.0.0",
- "@babel/parser": "^8.0.0",
- "@babel/types": "^8.0.0"
- },
- "engines": {
- "node": "^22.18.0 || >=24.11.0"
- }
- },
- "node_modules/@babel/traverse": {
- "version": "8.1.0",
- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-8.1.0.tgz",
- "integrity": "sha512-oQ0QI6MR4cm6bOR/Ua5HLPxvO7vborT7Le5HNt9GmZUKpNsaPl2yj4gsQ440lXaZjc4vmUbSeVgEcK4cHuCL2A==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/code-frame": "^8.0.6",
- "@babel/generator": "^8.1.0",
- "@babel/helper-globals": "^8.0.6",
- "@babel/parser": "^8.1.0",
- "@babel/template": "^8.0.0",
- "@babel/types": "^8.1.0",
- "obug": "^3.0.0"
- },
- "engines": {
- "node": "^22.18.0 || >=24.11.0"
- }
- },
- "node_modules/@babel/types": {
- "version": "8.1.0",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-8.1.0.tgz",
- "integrity": "sha512-8V8aSTDx012YPmDQF30vrokyxVFdRAU2YBS2VzrnfLAGkP8floVnjckwgFcD0Jrvf6GWMSRdCrYVsk3tyMwZRg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/helper-string-parser": "^8.0.8",
- "@babel/helper-validator-identifier": "^8.0.6"
- },
- "engines": {
- "node": "^22.18.0 || >=24.11.0"
- }
- },
- "node_modules/@jridgewell/gen-mapping": {
- "version": "0.4.0-beta.0",
- "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.4.0-beta.0.tgz",
- "integrity": "sha512-JdGNkbE4GlNPYQhM0L95fBQr7ctLZJ276QXQLTad4t1oSdnnCI3fDq9DW3BqYAWv8Wc3+HS+4Gsii1oPMCfz1w==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@jridgewell/sourcemap-codec": "^1.6.0-beta.0",
- "@jridgewell/trace-mapping": "^0.3.24"
- }
- },
- "node_modules/@jridgewell/resolve-uri": {
- "version": "3.1.2",
- "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
- "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.0.0"
- }
- },
- "node_modules/@jridgewell/sourcemap-codec": {
- "version": "1.6.0",
- "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz",
- "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@jridgewell/trace-mapping": {
- "version": "0.3.31",
- "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
- "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@jridgewell/resolve-uri": "^3.1.0",
- "@jridgewell/sourcemap-codec": "^1.4.14"
- }
- },
- "node_modules/@oxc-project/types": {
- "version": "0.156.0",
- "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.156.0.tgz",
- "integrity": "sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "url": "https://github.com/sponsors/oxc-project"
- }
- },
- "node_modules/@oxlint/binding-android-arm-eabi": {
- "version": "1.91.0",
- "resolved": "https://registry.npmjs.org/@oxlint/binding-android-arm-eabi/-/binding-android-arm-eabi-1.91.0.tgz",
- "integrity": "sha512-eOqJUUS1MCqIoUUxMIkuwaqIdKaHr1SXYA0CQI95UUrF8jwQylQH33bBmnqhZfvWXKlRB2Ylx/+Sbk/ctEqzZQ==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@oxlint/binding-android-arm64": {
- "version": "1.91.0",
- "resolved": "https://registry.npmjs.org/@oxlint/binding-android-arm64/-/binding-android-arm64-1.91.0.tgz",
- "integrity": "sha512-vIJU4lRxK0EhbBt+iR3rkq3pio4I+V5Gshwjei3plNjN+CIq0WxWHzYVI06J9KN8Ar3hyNSFtzJAjVRLZOYpjg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@oxlint/binding-darwin-arm64": {
- "version": "1.91.0",
- "resolved": "https://registry.npmjs.org/@oxlint/binding-darwin-arm64/-/binding-darwin-arm64-1.91.0.tgz",
- "integrity": "sha512-tLy76MurwAOpQt5QVMkJUgexBSWhB7qdvAYb14bc0xntZS6f55aKicbZoxZ/QlmAbnrdlXeD5+IjwY8EZ9RWTg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@oxlint/binding-darwin-x64": {
- "version": "1.91.0",
- "resolved": "https://registry.npmjs.org/@oxlint/binding-darwin-x64/-/binding-darwin-x64-1.91.0.tgz",
- "integrity": "sha512-zPeMmjAqm5vXxbTp/JqYuc9gGSbUuEaeCAkFHB4TCRLTlfJGD//Fkx03YvZHCHZJ7ideLiiLcae+3f2I27qnaA==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@oxlint/binding-freebsd-x64": {
- "version": "1.91.0",
- "resolved": "https://registry.npmjs.org/@oxlint/binding-freebsd-x64/-/binding-freebsd-x64-1.91.0.tgz",
- "integrity": "sha512-psOR9+xGMXn0hj4KY5M2kjSQ1n0TCMdYbPOraoV0iQyl7mw2oBBYGUM2+ma40m1YLVrktTBOta4FjrmcOHDhrg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "freebsd"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@oxlint/binding-linux-arm-gnueabihf": {
- "version": "1.91.0",
- "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.91.0.tgz",
- "integrity": "sha512-1PNA1j4ETxawvxfz6ueDxWgQgWkXPbv44DWZmC7LR07GqojGFDOwWbosOT6/AYiJr7zMXEhn2dPWMkyFFOFpUQ==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@oxlint/binding-linux-arm-musleabihf": {
- "version": "1.91.0",
- "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm-musleabihf/-/binding-linux-arm-musleabihf-1.91.0.tgz",
- "integrity": "sha512-jcNePVpca37lTbHmiPMnVbPAAW0rH9kAoDjsDv6vESEX9pzazIR1q5SyYuc1rQzdjHtc2VVCDN9jDh6tHcOHyA==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@oxlint/binding-linux-arm64-gnu": {
- "version": "1.91.0",
- "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.91.0.tgz",
- "integrity": "sha512-TJi78UX6R+9qZ23ZKtzN6adfW83bjY0NXsCRMBRH6H7IizaMXmZbdRAtjedMkx77bT46YQH0csawsY9lwha8MA==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "libc": [
- "glibc"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@oxlint/binding-linux-arm64-musl": {
- "version": "1.91.0",
- "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.91.0.tgz",
- "integrity": "sha512-OowlLroUTzKq5OBvbu6iegch8SJ2DivXFCukzPWURwvcJhMj7/P0CUGH5qrDlxT1Kh48dcxqYqrvE8qK6xTLKQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "libc": [
- "musl"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@oxlint/binding-linux-ppc64-gnu": {
- "version": "1.91.0",
- "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.91.0.tgz",
- "integrity": "sha512-QF/5Ge8yGpWg5s4awMNHfVKh1WOmk591Qg082i6CHenXYBa+W1E5RwWZXaKUOw4Ko7CCjqg3TfBc0AzhnqblYg==",
- "cpu": [
- "ppc64"
- ],
- "dev": true,
- "libc": [
- "glibc"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@oxlint/binding-linux-riscv64-gnu": {
- "version": "1.91.0",
- "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-1.91.0.tgz",
- "integrity": "sha512-dXlsKlNhzJQX1nageGKnvWe1D7uTng249hQM80CG/YPZ8F/VZHbxVLhImgurdWBOmu86XOemValLjrW6QIOM/Q==",
- "cpu": [
- "riscv64"
- ],
- "dev": true,
- "libc": [
- "glibc"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@oxlint/binding-linux-riscv64-musl": {
- "version": "1.91.0",
- "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-1.91.0.tgz",
- "integrity": "sha512-tznkj5VrWNRUfymkaLcJetgMLbP9suL5ob/m7j0Fdbnm5u3Li/Ezo/YcBixiuwdL1sg0oGpyTe86It0J6T+Lxg==",
- "cpu": [
- "riscv64"
- ],
- "dev": true,
- "libc": [
- "musl"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@oxlint/binding-linux-s390x-gnu": {
- "version": "1.91.0",
- "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.91.0.tgz",
- "integrity": "sha512-sNvfLiUYQkVsLNUgIW24AEYTHSd2zZ1vAxXssPdjuQHTtCpRvQihYri6d5z5FY7w/QrcnB5+g9E+/sqmZq8tfA==",
- "cpu": [
- "s390x"
- ],
- "dev": true,
- "libc": [
- "glibc"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@oxlint/binding-linux-x64-gnu": {
- "version": "1.91.0",
- "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.91.0.tgz",
- "integrity": "sha512-eA25ETvimhUZ89y5BcunNY7yv7qwG2I7V7dFQAU+mIEqZ57gBCXdIERl0yXOEt43zjsw0yK2gRKTc+twF706wQ==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "libc": [
- "glibc"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@oxlint/binding-linux-x64-musl": {
- "version": "1.91.0",
- "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-x64-musl/-/binding-linux-x64-musl-1.91.0.tgz",
- "integrity": "sha512-4hZ4Z9K+OkcTpAHDoUTMg/8MModbM0aocrl9KnGzp9h5iKqjrXraEUZorYoVCT7xoK93CAHXgTndxRBrOjH/fA==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "libc": [
- "musl"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@oxlint/binding-openharmony-arm64": {
- "version": "1.91.0",
- "resolved": "https://registry.npmjs.org/@oxlint/binding-openharmony-arm64/-/binding-openharmony-arm64-1.91.0.tgz",
- "integrity": "sha512-gtqn4b0kLpGe46Qh7NHiR86wZpd+TLaesO106s7V3RG33r63VB94LW5qPKEDJX64osh3xfjnPFn1M0484bC7wQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "openharmony"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@oxlint/binding-win32-arm64-msvc": {
- "version": "1.91.0",
- "resolved": "https://registry.npmjs.org/@oxlint/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.91.0.tgz",
- "integrity": "sha512-KQItBdsyHN28U3z/bEek6h9pvG3Uqv564QYO8K1bE/V7YRZgpHlRnfNKVPHkk4sfYKyPzEjCgW80QkImOLvJog==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@oxlint/binding-win32-ia32-msvc": {
- "version": "1.91.0",
- "resolved": "https://registry.npmjs.org/@oxlint/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-1.91.0.tgz",
- "integrity": "sha512-XFKqbbsQVmTgw+CyBKuzSZtAa45viom1naFfulKmkTFdDyDaBQaBqEz5J61TI8iwBynU+F8q7qPD+9mplZRhEg==",
- "cpu": [
- "ia32"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@oxlint/binding-win32-x64-msvc": {
- "version": "1.91.0",
- "resolved": "https://registry.npmjs.org/@oxlint/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.91.0.tgz",
- "integrity": "sha512-DmpK0PthG66Bcz5Y4JqNbzXltzyLQtg3ofYpd25+ejm7kQYUM78VL1uIP/ZFct2781mwUyBX37LatFPCTVp35A==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@polka/url": {
- "version": "1.0.0-next.29",
- "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.29.tgz",
- "integrity": "sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@rolldown/binding-android-arm-eabi": {
- "version": "1.2.16",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.16.tgz",
- "integrity": "sha512-ia3DwAs0OsMGS7+IConptSiyk9pEXkOx/AbJ2n/lAGxH3QkWQus1t8d7gnAT38FCU2sQu8lUbeR6AiZFv4JxaA==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-android-arm64": {
- "version": "1.2.16",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.16.tgz",
- "integrity": "sha512-kx5wBiMB6E7TEvpl2B9gjLU004BkvEm2Dr941BFjx/SontPwSzNuQUIoVKxHHoSjpFIfHMmcguyLOtyn0hObRg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-darwin-arm64": {
- "version": "1.2.16",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.16.tgz",
- "integrity": "sha512-qslZrXnKJU4cUpjoAmtAo/KQM9e2IRMlmpig6Zpwj+8KWxW8v+nkAf9216Bsek9lOC1jvg2yCjygCFo2f83msQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-darwin-x64": {
- "version": "1.2.16",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.16.tgz",
- "integrity": "sha512-FdF+y48ND13eAyM2mQn+85kvAqNlvRWROy2rhgA463X/0Gv4vGtazZtfaF1mRBLscYvtOlh4QnLjOWiFzX69OQ==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-freebsd-x64": {
- "version": "1.2.16",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.16.tgz",
- "integrity": "sha512-ddjqFM5e95AgLbUPtKIS7V1KTVlA0RUgCVr5mn+/IEhsdy3pr+Vuj/HZ7nlMN2FyxIwUktOH1LEPIQXO1v9y1Q==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "freebsd"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-linux-arm-gnueabihf": {
- "version": "1.2.16",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.16.tgz",
- "integrity": "sha512-tHdKWbFkFBI687iim3LIyIvyL7j66VvQYkDPss5Stn/qyE2tWkR1YD0dXmXPFKKqT/o5ZEJVsaRsWS2meQwGOA==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-linux-arm64-gnu": {
- "version": "1.2.16",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.16.tgz",
- "integrity": "sha512-FJiLGAblPBMlBEdbOqw6kW6QcXDWAf/oJu7gYs9ZJZwmg+K+/zjFLxPTIY9izJUzxzc24FHvmseyA0IvJSl17w==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "libc": [
- "glibc"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-linux-arm64-musl": {
- "version": "1.2.16",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.16.tgz",
- "integrity": "sha512-hrJpblMsrQ58U9veWpbXzkhV5zStunds6HWLprqq1qauvgBr1E6P+24kLj6lSLI9vjRn/RYpjprhkHQPKGWpNg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "libc": [
- "musl"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-linux-ppc64-gnu": {
- "version": "1.2.16",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.16.tgz",
- "integrity": "sha512-qJd/dC6j6CwLG9/s/RP2nb1RZ0GIgj7Ioj7x/SYa3RzjVrlzrmH0fhIOpfvqQDeIsdP0loi+kHaMhJzY1PBIaA==",
- "cpu": [
- "ppc64"
- ],
- "dev": true,
- "libc": [
- "glibc"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-linux-s390x-gnu": {
- "version": "1.2.16",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.16.tgz",
- "integrity": "sha512-Vx7Xg5uUJuNcujJjI70OICaH0EYj80BtOLZTSN7uOYg8QOLlyKnaG0IW7Fn/J0IpJsaKzmDKMhOQv1JBM9m9vg==",
- "cpu": [
- "s390x"
- ],
- "dev": true,
- "libc": [
- "glibc"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-linux-x64-gnu": {
- "version": "1.2.16",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.16.tgz",
- "integrity": "sha512-TNKhgE3uJTsTzatUSSYt0Kgo+Oa2uSlSjz4r1aEIea7HX6ULBym4fAlYUhG1i6pjNf2njfCUAfKwr6C3E9Xg1w==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "libc": [
- "glibc"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-linux-x64-musl": {
- "version": "1.2.16",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.16.tgz",
- "integrity": "sha512-7chXdpjXZ8qG0+mIxECN3cT9kvhZ3/oZhMX6Pp876P7CDrIy8nJswva6Mq357JR7eYXfuskwZxMeV1SzoZdHrA==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "libc": [
- "musl"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-openharmony-arm64": {
- "version": "1.2.16",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.16.tgz",
- "integrity": "sha512-Kwjt+7uNTJK5/MDkGWGVO2KQPnj8yAV75dMpfwyHZrJSXWHrniOB0aUEWlVYf3H1hOqFLIStLdM5QXq6bnKmOQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "openharmony"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-win32-arm64-msvc": {
- "version": "1.2.16",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.16.tgz",
- "integrity": "sha512-/LH6WfjDRXXJz/p5xl4TmU+jpcnwcxbKEQBW/GZE0JHfN0lGIyTtsUEGaQ/q/GikkGJ2yLKe6pwm7AnEWO8pdw==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/binding-win32-x64-msvc": {
- "version": "1.2.16",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.16.tgz",
- "integrity": "sha512-1lv1KvX0Z871zfk7vw+dnXMMnHNyDwMzWG8Kv3HxDXMOhzCX4SHc7HK319fInP0i+0p9D8brkfzL7pJOaGl+tw==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- }
- },
- "node_modules/@rolldown/plugin-babel": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/@rolldown/plugin-babel/-/plugin-babel-0.3.0.tgz",
- "integrity": "sha512-cB9Z6aqn7i8Zflv1D4tyIy/wvnWt+QVUPX2e3Jxq/4fvdX+Xk2gQyNN2sfYscfLIZN1LCQbCl4olpf9Ki+U1zw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "artichokie": "^0.4.5",
- "picomatch": "^4.0.7"
- },
- "engines": {
- "node": ">=22.12.0 || ^24.0.0"
- },
- "peerDependencies": {
- "@babel/core": "^7.29.0 || ^8.0.0-rc.1",
- "@babel/plugin-transform-runtime": "^7.29.0 || ^8.0.0-rc.1",
- "@babel/runtime": "^7.27.0 || ^8.0.0-rc.1",
- "rolldown": "^1.0.0-rc.5",
- "vite": "^8.0.0"
- },
- "peerDependenciesMeta": {
- "@babel/plugin-transform-runtime": {
- "optional": true
- },
- "@babel/runtime": {
- "optional": true
- },
- "vite": {
- "optional": true
- }
- }
- },
- "node_modules/@rolldown/pluginutils": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz",
- "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@types/babel__core": {
- "version": "7.20.5",
- "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",
- "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/parser": "^7.20.7",
- "@babel/types": "^7.20.7",
- "@types/babel__generator": "*",
- "@types/babel__template": "*",
- "@types/babel__traverse": "*"
- }
- },
- "node_modules/@types/babel__core/node_modules/@babel/helper-string-parser": {
- "version": "7.29.13",
- "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.13.tgz",
- "integrity": "sha512-fWegr+WsEsiMVW4KUNdIIzzMTZSzNiqhy0//6+2MRi2d5NFNsL/AYwBQW8eBnRbTBVRnDVzjaJEUqKaCWjMMdQ==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@types/babel__core/node_modules/@babel/helper-validator-identifier": {
- "version": "7.29.7",
- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz",
- "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@types/babel__core/node_modules/@babel/parser": {
- "version": "7.29.13",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.13.tgz",
- "integrity": "sha512-fJM50YYjlTiBhgdkGmC1tBpv+FMAyo4annf2X6Aks+0yRlaiVkYW/3f07xAfVVkYIoZ9fFZp+mEThUFnuybhkQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/types": "^7.29.11"
- },
- "bin": {
- "parser": "bin/babel-parser.js"
- },
- "engines": {
- "node": ">=6.0.0"
- }
- },
- "node_modules/@types/babel__core/node_modules/@babel/types": {
- "version": "7.29.11",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.11.tgz",
- "integrity": "sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/helper-string-parser": "^7.29.11",
- "@babel/helper-validator-identifier": "^7.29.7"
- },
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@types/babel__generator": {
- "version": "7.27.0",
- "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",
- "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/types": "^7.0.0"
- }
- },
- "node_modules/@types/babel__generator/node_modules/@babel/helper-string-parser": {
- "version": "7.29.13",
- "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.13.tgz",
- "integrity": "sha512-fWegr+WsEsiMVW4KUNdIIzzMTZSzNiqhy0//6+2MRi2d5NFNsL/AYwBQW8eBnRbTBVRnDVzjaJEUqKaCWjMMdQ==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@types/babel__generator/node_modules/@babel/helper-validator-identifier": {
- "version": "7.29.7",
- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz",
- "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@types/babel__generator/node_modules/@babel/types": {
- "version": "7.29.11",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.11.tgz",
- "integrity": "sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/helper-string-parser": "^7.29.11",
- "@babel/helper-validator-identifier": "^7.29.7"
- },
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@types/babel__template": {
- "version": "7.4.4",
- "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",
- "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/parser": "^7.1.0",
- "@babel/types": "^7.0.0"
- }
- },
- "node_modules/@types/babel__template/node_modules/@babel/helper-string-parser": {
- "version": "7.29.13",
- "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.13.tgz",
- "integrity": "sha512-fWegr+WsEsiMVW4KUNdIIzzMTZSzNiqhy0//6+2MRi2d5NFNsL/AYwBQW8eBnRbTBVRnDVzjaJEUqKaCWjMMdQ==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@types/babel__template/node_modules/@babel/helper-validator-identifier": {
- "version": "7.29.7",
- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz",
- "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@types/babel__template/node_modules/@babel/parser": {
- "version": "7.29.13",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.13.tgz",
- "integrity": "sha512-fJM50YYjlTiBhgdkGmC1tBpv+FMAyo4annf2X6Aks+0yRlaiVkYW/3f07xAfVVkYIoZ9fFZp+mEThUFnuybhkQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/types": "^7.29.11"
- },
- "bin": {
- "parser": "bin/babel-parser.js"
- },
- "engines": {
- "node": ">=6.0.0"
- }
- },
- "node_modules/@types/babel__template/node_modules/@babel/types": {
- "version": "7.29.11",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.11.tgz",
- "integrity": "sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/helper-string-parser": "^7.29.11",
- "@babel/helper-validator-identifier": "^7.29.7"
- },
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@types/babel__traverse": {
- "version": "7.28.0",
- "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",
- "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/types": "^7.28.2"
- }
- },
- "node_modules/@types/babel__traverse/node_modules/@babel/helper-string-parser": {
- "version": "7.29.13",
- "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.13.tgz",
- "integrity": "sha512-fWegr+WsEsiMVW4KUNdIIzzMTZSzNiqhy0//6+2MRi2d5NFNsL/AYwBQW8eBnRbTBVRnDVzjaJEUqKaCWjMMdQ==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@types/babel__traverse/node_modules/@babel/helper-validator-identifier": {
- "version": "7.29.7",
- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz",
- "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@types/babel__traverse/node_modules/@babel/types": {
- "version": "7.29.11",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.11.tgz",
- "integrity": "sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/helper-string-parser": "^7.29.11",
- "@babel/helper-validator-identifier": "^7.29.7"
- },
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@types/chai": {
- "version": "5.2.3",
- "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz",
- "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@types/deep-eql": "*",
- "assertion-error": "^2.0.1"
- }
- },
- "node_modules/@types/deep-eql": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz",
- "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@types/estree": {
- "version": "1.0.10",
- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.10.tgz",
- "integrity": "sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@types/gensync": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/@types/gensync/-/gensync-1.0.5.tgz",
- "integrity": "sha512-MbsRCT7mTikHwKZ0X+LVUTLRrZZRLipTuXEO9qOYO+zmjMVk81axyClMROf6uoPD9MRVu46bx8zoR0Ad9q3NAg==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@types/jsesc": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/@types/jsesc/-/jsesc-2.5.1.tgz",
- "integrity": "sha512-9VN+6yxLOPLOav+7PwjZbxiID2bVaeq0ED4qSQmdQTdjnXJSaCVKTR58t15oqH1H5t8Ng2ZX1SabJVoN9Q34bw==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@types/node": {
- "version": "26.6.6",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.6.tgz",
- "integrity": "sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "undici-types": "~8.9.0"
- }
- },
- "node_modules/@types/react": {
- "version": "19.3.0",
- "resolved": "https://registry.npmjs.org/@types/react/-/react-19.3.0.tgz",
- "integrity": "sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "csstype": "^3.2.2"
- }
- },
- "node_modules/@types/react-dom": {
- "version": "19.3.0",
- "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.3.0.tgz",
- "integrity": "sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q==",
- "dev": true,
- "license": "MIT",
- "peerDependencies": {
- "@types/react": "^19.3.0"
- }
- },
- "node_modules/@typescript/typescript-aix-ppc64": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/@typescript/typescript-aix-ppc64/-/typescript-aix-ppc64-7.0.2.tgz",
- "integrity": "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==",
- "cpu": [
- "ppc64"
- ],
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "aix"
- ],
- "engines": {
- "node": ">=16.20.0"
- }
- },
- "node_modules/@typescript/typescript-darwin-arm64": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-arm64/-/typescript-darwin-arm64-7.0.2.tgz",
- "integrity": "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">=16.20.0"
- }
- },
- "node_modules/@typescript/typescript-darwin-x64": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-x64/-/typescript-darwin-x64-7.0.2.tgz",
- "integrity": "sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">=16.20.0"
- }
- },
- "node_modules/@typescript/typescript-freebsd-arm64": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-arm64/-/typescript-freebsd-arm64-7.0.2.tgz",
- "integrity": "sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "freebsd"
- ],
- "engines": {
- "node": ">=16.20.0"
- }
- },
- "node_modules/@typescript/typescript-freebsd-x64": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-x64/-/typescript-freebsd-x64-7.0.2.tgz",
- "integrity": "sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "freebsd"
- ],
- "engines": {
- "node": ">=16.20.0"
- }
- },
- "node_modules/@typescript/typescript-linux-arm": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm/-/typescript-linux-arm-7.0.2.tgz",
- "integrity": "sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=16.20.0"
- }
- },
- "node_modules/@typescript/typescript-linux-arm64": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm64/-/typescript-linux-arm64-7.0.2.tgz",
- "integrity": "sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=16.20.0"
- }
- },
- "node_modules/@typescript/typescript-linux-loong64": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-loong64/-/typescript-linux-loong64-7.0.2.tgz",
- "integrity": "sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==",
- "cpu": [
- "loong64"
- ],
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=16.20.0"
- }
- },
- "node_modules/@typescript/typescript-linux-mips64el": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-mips64el/-/typescript-linux-mips64el-7.0.2.tgz",
- "integrity": "sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==",
- "cpu": [
- "mips64el"
- ],
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=16.20.0"
- }
- },
- "node_modules/@typescript/typescript-linux-ppc64": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-ppc64/-/typescript-linux-ppc64-7.0.2.tgz",
- "integrity": "sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==",
- "cpu": [
- "ppc64"
- ],
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=16.20.0"
- }
- },
- "node_modules/@typescript/typescript-linux-riscv64": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-riscv64/-/typescript-linux-riscv64-7.0.2.tgz",
- "integrity": "sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==",
- "cpu": [
- "riscv64"
- ],
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=16.20.0"
- }
- },
- "node_modules/@typescript/typescript-linux-s390x": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-s390x/-/typescript-linux-s390x-7.0.2.tgz",
- "integrity": "sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==",
- "cpu": [
- "s390x"
- ],
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=16.20.0"
- }
- },
- "node_modules/@typescript/typescript-linux-x64": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-x64/-/typescript-linux-x64-7.0.2.tgz",
- "integrity": "sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=16.20.0"
- }
- },
- "node_modules/@typescript/typescript-netbsd-arm64": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-arm64/-/typescript-netbsd-arm64-7.0.2.tgz",
- "integrity": "sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "netbsd"
- ],
- "engines": {
- "node": ">=16.20.0"
- }
- },
- "node_modules/@typescript/typescript-netbsd-x64": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-x64/-/typescript-netbsd-x64-7.0.2.tgz",
- "integrity": "sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "netbsd"
- ],
- "engines": {
- "node": ">=16.20.0"
- }
- },
- "node_modules/@typescript/typescript-openbsd-arm64": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-arm64/-/typescript-openbsd-arm64-7.0.2.tgz",
- "integrity": "sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "openbsd"
- ],
- "engines": {
- "node": ">=16.20.0"
- }
- },
- "node_modules/@typescript/typescript-openbsd-x64": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-x64/-/typescript-openbsd-x64-7.0.2.tgz",
- "integrity": "sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "openbsd"
- ],
- "engines": {
- "node": ">=16.20.0"
- }
- },
- "node_modules/@typescript/typescript-sunos-x64": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/@typescript/typescript-sunos-x64/-/typescript-sunos-x64-7.0.2.tgz",
- "integrity": "sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "sunos"
- ],
- "engines": {
- "node": ">=16.20.0"
- }
- },
- "node_modules/@typescript/typescript-win32-arm64": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-arm64/-/typescript-win32-arm64-7.0.2.tgz",
- "integrity": "sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">=16.20.0"
- }
- },
- "node_modules/@typescript/typescript-win32-x64": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-x64/-/typescript-win32-x64-7.0.2.tgz",
- "integrity": "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">=16.20.0"
- }
- },
- "node_modules/@vitejs/plugin-react": {
- "version": "6.2.1",
- "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.2.1.tgz",
- "integrity": "sha512-9KyWCij3r0+qLG3Q62vBmv0VyevmYibAtxaCIVK9o0k6CXgaajZRIe8tpfchQcdZArJ5b/7OrIz4W3b2uxVRDA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@rolldown/pluginutils": "^1.0.1"
- },
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- },
- "peerDependencies": {
- "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0 || ^0.3.0",
- "babel-plugin-react-compiler": "^1.0.0",
- "oxc-transform-react": ">=0.152.0 <0.157.0",
- "vite": "^8.0.0"
- },
- "peerDependenciesMeta": {
- "@rolldown/plugin-babel": {
- "optional": true
- },
- "babel-plugin-react-compiler": {
- "optional": true
- },
- "oxc-transform-react": {
- "optional": true
- }
- }
- },
- "node_modules/@vitest/mocker": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-5.1.0.tgz",
- "integrity": "sha512-5umB9/jlWcqVS6fsrFmv5Gdnpu6wAUio/lEOwAmvB7v+lFo/IW2B9FhAD0p19GCULTgMzLCdUmuCDCnAzWgppQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@jridgewell/trace-mapping": "0.3.31",
- "@vitest/spy": "5.1.0",
- "estree-walker": "^3.0.3",
- "magic-string": "^1.4.3"
- },
- "funding": {
- "url": "https://opencollective.com/vitest"
- },
- "peerDependencies": {
- "msw": "^2.4.9 || ^3.0.0",
- "vite": "^6.0.0 || ^7.0.0 || ^8.0.0"
- },
- "peerDependenciesMeta": {
- "msw": {
- "optional": true
- },
- "vite": {
- "optional": true
- }
- }
- },
- "node_modules/@vitest/pretty-format": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-5.1.0.tgz",
- "integrity": "sha512-IRx5mc30CrFzyMNni6SZKQ1r53kv049Mcvvk0WbWcD6PUz/bFjG4zYv0KosQAeonPpGp5WxqYBMqdSOfJfvVWw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "tinyrainbow": "^3.2.0"
- },
- "funding": {
- "url": "https://opencollective.com/vitest"
- }
- },
- "node_modules/@vitest/spy": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.1.0.tgz",
- "integrity": "sha512-2DPO5OMHWKrBngC+fCmTQqemNF0gidRhp3lxbBmRhW+M1XJrfgPpqNqWVevXtn2f2ufD5ZaR1B6B641aAlcX5A==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "url": "https://opencollective.com/vitest"
- }
- },
- "node_modules/@vitest/ui": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/@vitest/ui/-/ui-5.1.0.tgz",
- "integrity": "sha512-00S3x4NRmqIBUiTVWF9/xLaA9EP9KeKv0+1sBO7e2Y4luBISlW+2ttnhlk/zjbTqEvVhJWCCo7MXzu6zNbefqQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@vitest/utils": "5.1.0",
- "fflate": "^0.8.3",
- "flatted": "^3.4.4",
- "pathe": "^2.0.3",
- "sirv": "^3.0.2",
- "tinyrainbow": "^3.2.0"
- },
- "funding": {
- "url": "https://opencollective.com/vitest"
- },
- "peerDependencies": {
- "vitest": "5.1.0"
- }
- },
- "node_modules/@vitest/utils": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-5.1.0.tgz",
- "integrity": "sha512-V+qgCwkvVw+s1t1S5TaoBHsLi5Sz/YmohCMoOu0mZ8ZQst2bKhRYARAQucWpVg8D0mv0x5MHcWXY5QdOsoiGBQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@vitest/pretty-format": "5.1.0",
- "convert-source-map": "^2.0.0",
- "tinyrainbow": "^3.2.0"
- },
- "funding": {
- "url": "https://opencollective.com/vitest"
- }
- },
- "node_modules/artichokie": {
- "version": "0.4.5",
- "resolved": "https://registry.npmjs.org/artichokie/-/artichokie-0.4.5.tgz",
- "integrity": "sha512-ma9643oYgSgA6CeDvKIU0zxL1eKOkbgH8/v83xFpFYB2VOPFoEmmg1iC+ooHFjLIJ3qdtfwPbEKpIW3/YxPovg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": "^18.0.0 || >=20.0.0"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/sapphi-red"
- }
- },
- "node_modules/assertion-error": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",
- "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/babel-plugin-react-compiler": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/babel-plugin-react-compiler/-/babel-plugin-react-compiler-1.0.0.tgz",
- "integrity": "sha512-Ixm8tFfoKKIPYdCCKYTsqv+Fd4IJ0DQqMyEimo+pxUOMUR9cVPlwTrFt9Avu+3cb6Zp3mAzl+t1MrG2fxxKsxw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/types": "^7.26.0"
- }
- },
- "node_modules/babel-plugin-react-compiler/node_modules/@babel/helper-string-parser": {
- "version": "7.29.13",
- "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.13.tgz",
- "integrity": "sha512-fWegr+WsEsiMVW4KUNdIIzzMTZSzNiqhy0//6+2MRi2d5NFNsL/AYwBQW8eBnRbTBVRnDVzjaJEUqKaCWjMMdQ==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/babel-plugin-react-compiler/node_modules/@babel/helper-validator-identifier": {
- "version": "7.29.7",
- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz",
- "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/babel-plugin-react-compiler/node_modules/@babel/types": {
- "version": "7.29.11",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.11.tgz",
- "integrity": "sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/helper-string-parser": "^7.29.11",
- "@babel/helper-validator-identifier": "^7.29.7"
- },
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/baseline-browser-mapping": {
- "version": "2.11.35",
- "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.35.tgz",
- "integrity": "sha512-GNk8KX52CHqeNKGk8+7tZnQab/2k1t/BgrUHPKNdijzpEhF1saPQZHVKb6m5loSAxB39gyrTYw34Qf9CQ3u1qQ==",
- "dev": true,
- "license": "Apache-2.0",
- "bin": {
- "baseline-browser-mapping": "dist/cli.cjs"
- },
- "engines": {
- "node": ">=6.0.0"
- }
- },
- "node_modules/browserslist": {
- "version": "4.29.5",
- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.5.tgz",
- "integrity": "sha512-khTmKu5NGYTotqcYo8Bew2k4RAE9PuXRSFRXG2lQBrCEQHyeQ/vX6gKMxfokwywBsLiXZMnHsmWMG1pnO8J7uQ==",
- "dev": true,
- "funding": [
- {
- "type": "opencollective",
- "url": "https://opencollective.com/browserslist"
- },
- {
- "type": "tidelift",
- "url": "https://tidelift.com/funding/github/npm/browserslist"
- },
- {
- "type": "github",
- "url": "https://github.com/sponsors/ai"
- }
- ],
- "license": "MIT",
- "dependencies": {
- "baseline-browser-mapping": "^2.11.33",
- "caniuse-lite": "^1.0.30001819",
- "electron-to-chromium": "^1.5.464",
- "node-releases": "^2.0.60",
- "update-browserslist-db": "^1.3.4"
- },
- "bin": {
- "browserslist": "cli.js"
- },
- "engines": {
- "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
- }
- },
- "node_modules/caniuse-lite": {
- "version": "1.0.30001820",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001820.tgz",
- "integrity": "sha512-gfWD6MxqVCqAOwmODfZf7DchWvlrA+SRdNX7ceLfg3xRqe5ssjjpF7EgslC/0tiLiNTajdaNN/q8c/5u/7Gz8w==",
- "dev": true,
- "funding": [
- {
- "type": "opencollective",
- "url": "https://opencollective.com/browserslist"
- },
- {
- "type": "tidelift",
- "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
- },
- {
- "type": "github",
- "url": "https://github.com/sponsors/ai"
- }
- ],
- "license": "CC-BY-4.0"
- },
- "node_modules/chai": {
- "version": "6.3.0",
- "resolved": "https://registry.npmjs.org/chai/-/chai-6.3.0.tgz",
- "integrity": "sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/convert-source-map": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
- "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/cookie": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz",
- "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==",
- "license": "MIT",
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/express"
- }
- },
- "node_modules/csstype": {
- "version": "3.2.3",
- "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
- "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/detect-libc": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
- "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
- "dev": true,
- "license": "Apache-2.0",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/electron-to-chromium": {
- "version": "1.5.477",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.477.tgz",
- "integrity": "sha512-PN++F4zWZoVDGWinxMnSCpVqKhqFOJfLXxdU8bYJKudAEsHL/XKVITOKWVbfMt1r276Mi9RDLU9VHx9uKJ4RMQ==",
- "dev": true,
- "license": "ISC"
- },
- "node_modules/empathic": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/empathic/-/empathic-2.1.0.tgz",
- "integrity": "sha512-AnfC1ATldl49/cvZdLPDjBfrRNwbDO05aibiOtzQu3qtlbJtomNLhF30HEtn/7iBz50dlMECqATo3fG0LrdEgw==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=14"
- }
- },
- "node_modules/es-module-lexer": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz",
- "integrity": "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/escalade": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
- "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/estree-walker": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",
- "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@types/estree": "^1.0.0"
- }
- },
- "node_modules/expect-type": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz",
- "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==",
- "dev": true,
- "license": "Apache-2.0",
- "engines": {
- "node": ">=12.0.0"
- }
- },
- "node_modules/fdir": {
- "version": "6.5.0",
- "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
- "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=12.0.0"
- },
- "peerDependencies": {
- "picomatch": "^3 || ^4"
- },
- "peerDependenciesMeta": {
- "picomatch": {
- "optional": true
- }
- }
- },
- "node_modules/fflate": {
- "version": "0.8.3",
- "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.3.tgz",
- "integrity": "sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/flatted": {
- "version": "3.4.4",
- "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz",
- "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==",
- "dev": true,
- "license": "ISC"
- },
- "node_modules/flru": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/flru/-/flru-1.0.2.tgz",
- "integrity": "sha512-kWyh8ADvHBFz6ua5xYOPnUroZTT/bwWfrCeL0Wj1dzG4/YOmOcfJ99W8dOVyyynJN35rZ9aCOtHChqQovV7yog==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/fsevents": {
- "version": "2.3.3",
- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
- "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
- "dev": true,
- "hasInstallScript": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
- }
- },
- "node_modules/gensync": {
- "version": "1.0.0-beta.2",
- "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
- "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/import-meta-resolve": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.2.0.tgz",
- "integrity": "sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
- "node_modules/js-tokens": {
- "version": "10.0.0",
- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-10.0.0.tgz",
- "integrity": "sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/jsesc": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
- "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
- "dev": true,
- "license": "MIT",
- "bin": {
- "jsesc": "bin/jsesc"
- },
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/json5": {
- "version": "2.2.3",
- "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
- "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
- "dev": true,
- "license": "MIT",
- "bin": {
- "json5": "lib/cli.js"
- },
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/lightningcss": {
- "version": "1.33.0",
- "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz",
- "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==",
- "dev": true,
- "license": "MPL-2.0",
- "dependencies": {
- "detect-libc": "^2.0.3"
- },
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- },
- "optionalDependencies": {
- "lightningcss-android-arm64": "1.33.0",
- "lightningcss-darwin-arm64": "1.33.0",
- "lightningcss-darwin-x64": "1.33.0",
- "lightningcss-freebsd-x64": "1.33.0",
- "lightningcss-linux-arm-gnueabihf": "1.33.0",
- "lightningcss-linux-arm64-gnu": "1.33.0",
- "lightningcss-linux-arm64-musl": "1.33.0",
- "lightningcss-linux-x64-gnu": "1.33.0",
- "lightningcss-linux-x64-musl": "1.33.0",
- "lightningcss-win32-arm64-msvc": "1.33.0",
- "lightningcss-win32-x64-msvc": "1.33.0"
- }
- },
- "node_modules/lightningcss-android-arm64": {
- "version": "1.33.0",
- "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz",
- "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MPL-2.0",
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/lightningcss-darwin-arm64": {
- "version": "1.33.0",
- "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz",
- "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MPL-2.0",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/lightningcss-darwin-x64": {
- "version": "1.33.0",
- "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz",
- "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MPL-2.0",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/lightningcss-freebsd-x64": {
- "version": "1.33.0",
- "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz",
- "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MPL-2.0",
- "optional": true,
- "os": [
- "freebsd"
- ],
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/lightningcss-linux-arm-gnueabihf": {
- "version": "1.33.0",
- "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz",
- "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "license": "MPL-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/lightningcss-linux-arm64-gnu": {
- "version": "1.33.0",
- "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz",
- "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "libc": [
- "glibc"
- ],
- "license": "MPL-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/lightningcss-linux-arm64-musl": {
- "version": "1.33.0",
- "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz",
- "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "libc": [
- "musl"
- ],
- "license": "MPL-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/lightningcss-linux-x64-gnu": {
- "version": "1.33.0",
- "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz",
- "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "libc": [
- "glibc"
- ],
- "license": "MPL-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/lightningcss-linux-x64-musl": {
- "version": "1.33.0",
- "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz",
- "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "libc": [
- "musl"
- ],
- "license": "MPL-2.0",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/lightningcss-win32-arm64-msvc": {
- "version": "1.33.0",
- "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz",
- "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MPL-2.0",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/lightningcss-win32-x64-msvc": {
- "version": "1.33.0",
- "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz",
- "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MPL-2.0",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">= 12.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/parcel"
- }
- },
- "node_modules/magic-string": {
- "version": "1.4.5",
- "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.5.tgz",
- "integrity": "sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@jridgewell/sourcemap-codec": "^1.6.0"
- }
- },
- "node_modules/mrmime": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-2.0.1.tgz",
- "integrity": "sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/nanoid": {
- "version": "3.3.20",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz",
- "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==",
- "dev": true,
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/ai"
- }
- ],
- "license": "MIT",
- "bin": {
- "nanoid": "bin/nanoid.cjs"
- },
- "engines": {
- "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
- }
- },
- "node_modules/node-releases": {
- "version": "2.0.63",
- "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.63.tgz",
- "integrity": "sha512-6li2QanLsAXpIH2R6j77MzRyvOyrvdTqlKtO4CgBdHGNvN99ZZfyxszHc5o5+IZBWD5u6Hzwg83JoGXmqZNG9Q==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/obug": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/obug/-/obug-3.0.0.tgz",
- "integrity": "sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==",
- "dev": true,
- "funding": [
- "https://github.com/sponsors/sxzz",
- "https://opencollective.com/debug"
- ],
- "license": "MIT",
- "engines": {
- "node": ">=12.20.0"
- }
- },
- "node_modules/oxlint": {
- "version": "1.91.0",
- "resolved": "https://registry.npmjs.org/oxlint/-/oxlint-1.91.0.tgz",
- "integrity": "sha512-vjy/cBZcEFcYh3dbxUoQK+bjc+QaY3ZWo86aJkZ5YAwp/HyiqP7dTdNgbvcIVJafhAH5sZbTqBp4sZcicEZngA==",
- "dev": true,
- "license": "MIT",
- "bin": {
- "oxlint": "bin/oxlint"
- },
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- },
- "funding": {
- "url": "https://github.com/sponsors/oxc-project"
- },
- "optionalDependencies": {
- "@oxlint/binding-android-arm-eabi": "1.91.0",
- "@oxlint/binding-android-arm64": "1.91.0",
- "@oxlint/binding-darwin-arm64": "1.91.0",
- "@oxlint/binding-darwin-x64": "1.91.0",
- "@oxlint/binding-freebsd-x64": "1.91.0",
- "@oxlint/binding-linux-arm-gnueabihf": "1.91.0",
- "@oxlint/binding-linux-arm-musleabihf": "1.91.0",
- "@oxlint/binding-linux-arm64-gnu": "1.91.0",
- "@oxlint/binding-linux-arm64-musl": "1.91.0",
- "@oxlint/binding-linux-ppc64-gnu": "1.91.0",
- "@oxlint/binding-linux-riscv64-gnu": "1.91.0",
- "@oxlint/binding-linux-riscv64-musl": "1.91.0",
- "@oxlint/binding-linux-s390x-gnu": "1.91.0",
- "@oxlint/binding-linux-x64-gnu": "1.91.0",
- "@oxlint/binding-linux-x64-musl": "1.91.0",
- "@oxlint/binding-openharmony-arm64": "1.91.0",
- "@oxlint/binding-win32-arm64-msvc": "1.91.0",
- "@oxlint/binding-win32-ia32-msvc": "1.91.0",
- "@oxlint/binding-win32-x64-msvc": "1.91.0"
- },
- "peerDependencies": {
- "oxlint-tsgolint": ">=7.0.2005",
- "vite-plus": "*"
- },
- "peerDependenciesMeta": {
- "oxlint-tsgolint": {
- "optional": true
- },
- "vite-plus": {
- "optional": true
- }
- }
- },
- "node_modules/pathe": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",
- "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/picocolors": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
- "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
- "dev": true,
- "license": "ISC"
- },
- "node_modules/picomatch": {
- "version": "4.0.7",
- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",
- "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/sponsors/jonschlinkert"
- }
- },
- "node_modules/postcss": {
- "version": "8.5.32",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.32.tgz",
- "integrity": "sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==",
- "dev": true,
- "funding": [
- {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- },
- {
- "type": "tidelift",
- "url": "https://tidelift.com/funding/github/npm/postcss"
- },
- {
- "type": "github",
- "url": "https://github.com/sponsors/ai"
- }
- ],
- "license": "MIT",
- "dependencies": {
- "nanoid": "^3.3.20",
- "picocolors": "^1.1.1",
- "source-map-js": "^1.2.2"
- },
- "engines": {
- "node": "^10 || ^12 || >=14"
- }
- },
- "node_modules/react": {
- "version": "19.3.1",
- "resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz",
- "integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==",
- "license": "MIT",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/react-dom": {
- "version": "19.3.1",
- "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.1.tgz",
- "integrity": "sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==",
- "license": "MIT",
- "dependencies": {
- "scheduler": "^0.28.0"
- },
- "peerDependencies": {
- "react": "^19.3.1"
- }
- },
- "node_modules/react-router": {
- "version": "7.18.5",
- "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.18.5.tgz",
- "integrity": "sha512-dTgvcXDOrLPrlLHrcZAqWveiK1hMSqN+rGAJzegP8HtmNkfRxOoshGWBNX3ZJ0cZjOHkRdlUJtaIhZMLLyGyPw==",
- "license": "MIT",
- "dependencies": {
- "cookie": "^1.0.1",
- "set-cookie-parser": "^2.6.0"
- },
- "engines": {
- "node": ">=20.0.0"
- },
- "peerDependencies": {
- "react": ">=18",
- "react-dom": ">=18"
- },
- "peerDependenciesMeta": {
- "react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/react-router-dom": {
- "version": "7.18.5",
- "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.18.5.tgz",
- "integrity": "sha512-9HcfDMU6JJ/fp6gJZYGwNE6RknVGS4kBjH1HkNw959mCJi70TVwdipQWv2FEol9uGpi+SZTFtVpJPtEQfayeOw==",
- "license": "MIT",
- "dependencies": {
- "react-router": "7.18.5"
- },
- "engines": {
- "node": ">=20.0.0"
- },
- "peerDependencies": {
- "react": ">=18",
- "react-dom": ">=18"
- }
- },
- "node_modules/rolldown": {
- "version": "1.2.16",
- "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.16.tgz",
- "integrity": "sha512-bWvlMpFKiTfDKfnK7FC2MPgPeWCf/Kpwsq49ApdW+FQaBZb6O6dZ4MAPbPUjp7hYQrw/RobqCzn64BRrQecGHw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@oxc-project/types": "=0.156.0",
- "@rolldown/pluginutils": "^1.0.0"
- },
- "bin": {
- "rolldown": "bin/cli.mjs"
- },
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- },
- "optionalDependencies": {
- "@rolldown/binding-android-arm-eabi": "1.2.16",
- "@rolldown/binding-android-arm64": "1.2.16",
- "@rolldown/binding-darwin-arm64": "1.2.16",
- "@rolldown/binding-darwin-x64": "1.2.16",
- "@rolldown/binding-freebsd-x64": "1.2.16",
- "@rolldown/binding-linux-arm-gnueabihf": "1.2.16",
- "@rolldown/binding-linux-arm64-gnu": "1.2.16",
- "@rolldown/binding-linux-arm64-musl": "1.2.16",
- "@rolldown/binding-linux-ppc64-gnu": "1.2.16",
- "@rolldown/binding-linux-s390x-gnu": "1.2.16",
- "@rolldown/binding-linux-x64-gnu": "1.2.16",
- "@rolldown/binding-linux-x64-musl": "1.2.16",
- "@rolldown/binding-openharmony-arm64": "1.2.16",
- "@rolldown/binding-win32-arm64-msvc": "1.2.16",
- "@rolldown/binding-win32-x64-msvc": "1.2.16"
- }
- },
- "node_modules/scheduler": {
- "version": "0.28.0",
- "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz",
- "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==",
- "license": "MIT"
- },
- "node_modules/set-cookie-parser": {
- "version": "2.7.3",
- "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.3.tgz",
- "integrity": "sha512-irZHtTqurLna57KQG/s+fzOwv/J6XSH4cs8M/vsrY3uCaQ3S6+QJguAH0WdN47SXlk82voMZ4naWMQf8fdEoIg==",
- "license": "MIT"
- },
- "node_modules/sirv": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/sirv/-/sirv-3.0.2.tgz",
- "integrity": "sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@polka/url": "^1.0.0-next.24",
- "mrmime": "^2.0.0",
- "totalist": "^3.0.0"
- },
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/source-map-js": {
- "version": "1.2.2",
- "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz",
- "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==",
- "dev": true,
- "license": "BSD-3-Clause",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/std-env": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.3.0.tgz",
- "integrity": "sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/tinybench": {
- "version": "6.2.3",
- "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-6.2.3.tgz",
- "integrity": "sha512-Al01C2JIBnO2CXCAPbpAl6sUiOZHeThGtHYNTa51JRw9PyWOCdr+9Ong05R4qg/Sk3+H645E8ov1h2c58ityNw==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=20.0.0"
- }
- },
- "node_modules/tinyexec": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.1.tgz",
- "integrity": "sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/tinyglobby": {
- "version": "0.2.17",
- "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz",
- "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "fdir": "^6.5.0",
- "picomatch": "^4.0.4"
- },
- "engines": {
- "node": ">=12.0.0"
- },
- "funding": {
- "url": "https://github.com/sponsors/SuperchupuDev"
- }
- },
- "node_modules/tinyrainbow": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.2.0.tgz",
- "integrity": "sha512-LgO3D9yZJjApUiuUfl9iFAwrtaX4+lok3wJIqttGoKCHlWUqHqbQpnxCf82L8FjgKsh4iGo78hqJwgL8F6To2A==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=14.0.0"
- }
- },
- "node_modules/totalist": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/totalist/-/totalist-3.0.1.tgz",
- "integrity": "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/typescript": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-7.0.2.tgz",
- "integrity": "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==",
- "dev": true,
- "license": "Apache-2.0",
- "bin": {
- "tsc": "bin/tsc"
- },
- "engines": {
- "node": ">=16.20.0"
- },
- "optionalDependencies": {
- "@typescript/typescript-aix-ppc64": "7.0.2",
- "@typescript/typescript-darwin-arm64": "7.0.2",
- "@typescript/typescript-darwin-x64": "7.0.2",
- "@typescript/typescript-freebsd-arm64": "7.0.2",
- "@typescript/typescript-freebsd-x64": "7.0.2",
- "@typescript/typescript-linux-arm": "7.0.2",
- "@typescript/typescript-linux-arm64": "7.0.2",
- "@typescript/typescript-linux-loong64": "7.0.2",
- "@typescript/typescript-linux-mips64el": "7.0.2",
- "@typescript/typescript-linux-ppc64": "7.0.2",
- "@typescript/typescript-linux-riscv64": "7.0.2",
- "@typescript/typescript-linux-s390x": "7.0.2",
- "@typescript/typescript-linux-x64": "7.0.2",
- "@typescript/typescript-netbsd-arm64": "7.0.2",
- "@typescript/typescript-netbsd-x64": "7.0.2",
- "@typescript/typescript-openbsd-arm64": "7.0.2",
- "@typescript/typescript-openbsd-x64": "7.0.2",
- "@typescript/typescript-sunos-x64": "7.0.2",
- "@typescript/typescript-win32-arm64": "7.0.2",
- "@typescript/typescript-win32-x64": "7.0.2"
- }
- },
- "node_modules/undici-types": {
- "version": "8.9.0",
- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz",
- "integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/update-browserslist-db": {
- "version": "1.3.4",
- "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.4.tgz",
- "integrity": "sha512-t8wonIOdQyOjtPd2VktlBu6QjTVTks6v8bSi7kd0r2Vll8TK1JYDZtRRdbmCHOAMphkZgrzK+L+vXK4pyZ8t4A==",
- "dev": true,
- "funding": [
- {
- "type": "opencollective",
- "url": "https://opencollective.com/browserslist"
- },
- {
- "type": "tidelift",
- "url": "https://tidelift.com/funding/github/npm/browserslist"
- },
- {
- "type": "github",
- "url": "https://github.com/sponsors/ai"
- }
- ],
- "license": "MIT",
- "dependencies": {
- "escalade": "^3.2.0",
- "picocolors": "^1.1.1"
- },
- "bin": {
- "update-browserslist-db": "cli.js"
- },
- "peerDependencies": {
- "browserslist": ">= 4.21.0"
- }
- },
- "node_modules/verkit": {
- "version": "0.5.0",
- "resolved": "https://registry.npmjs.org/verkit/-/verkit-0.5.0.tgz",
- "integrity": "sha512-u4J1hr6Y+C/hit34GwL3eIcUf3wngT8TlYUjK7tk0jxydKLAq3sYvifjdTDA6U3KCKRcQCQDGf/srjxfZF3l7g==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=18.12.0"
- },
- "funding": {
- "url": "https://github.com/sponsors/sxzz"
- }
- },
- "node_modules/vite": {
- "version": "8.3.6",
- "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.6.tgz",
- "integrity": "sha512-UI7dK29NnS54Fk+mmo7o+jI6U8Fp7hDl+X5Q1k45WH+d4dSlbLVUETGQ+hfkNgvLQGyoElPj837nZyv4MBc0VA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "lightningcss": "^1.33.0",
- "picomatch": "^4.0.7",
- "postcss": "^8.5.32",
- "rolldown": "~1.2.16",
- "tinyglobby": "^0.2.17"
- },
- "bin": {
- "vite": "bin/vite.js"
- },
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- },
- "funding": {
- "url": "https://github.com/vitejs/vite?sponsor=1"
- },
- "optionalDependencies": {
- "fsevents": "~2.3.3"
- },
- "peerDependencies": {
- "@types/node": "^20.19.0 || >=22.12.0",
- "@vitejs/devtools": "^0.7.1 || ^0.8.0",
- "esbuild": "^0.27.0 || ^0.28.0",
- "jiti": ">=1.21.0",
- "less": "^4.0.0",
- "sass": "^1.70.0",
- "sass-embedded": "^1.70.0",
- "stylus": ">=0.54.8",
- "sugarss": "^5.0.0",
- "terser": "^5.16.0",
- "tsx": "^4.8.1",
- "yaml": "^2.4.2"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- },
- "@vitejs/devtools": {
- "optional": true
- },
- "esbuild": {
- "optional": true
- },
- "jiti": {
- "optional": true
- },
- "less": {
- "optional": true
- },
- "sass": {
- "optional": true
- },
- "sass-embedded": {
- "optional": true
- },
- "stylus": {
- "optional": true
- },
- "sugarss": {
- "optional": true
- },
- "terser": {
- "optional": true
- },
- "tsx": {
- "optional": true
- },
- "yaml": {
- "optional": true
- }
- }
- },
- "node_modules/vitest": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/vitest/-/vitest-5.1.0.tgz",
- "integrity": "sha512-MzmNFnrwa8v8lF1bLxw3UJ4EREwVOVb75VqJZmUDRjJ6EluK/x9th7qTbaeDk41WxE1GxWqmTXcdsfobfH5sOA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@types/chai": "^5.2.2",
- "@vitest/mocker": "5.1.0",
- "chai": "^6.3.0",
- "es-module-lexer": "^2.3.2",
- "expect-type": "^1.4.0",
- "magic-string": "^1.4.3",
- "obug": "^3.0.0",
- "picomatch": "^4.0.7",
- "std-env": "^4.3.0",
- "tinybench": "^6.2.2",
- "tinyexec": "^1.3.1",
- "tinyglobby": "^0.2.17",
- "why-is-node-running": "3.2.1"
- },
- "bin": {
- "vitest": "vitest.mjs"
- },
- "engines": {
- "node": "^22.12.0 || ^24.0.0 || >=26.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/vitest"
- },
- "peerDependencies": {
- "@edge-runtime/vm": "*",
- "@opentelemetry/api": "^1.9.0",
- "@types/node": "^22.0.0 || >=24.0.0",
- "@vitest/browser-playwright": "5.1.0",
- "@vitest/browser-preview": "5.1.0",
- "@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0",
- "@vitest/coverage-istanbul": "5.1.0",
- "@vitest/coverage-v8": "5.1.0",
- "@vitest/ui": "5.1.0",
- "happy-dom": "*",
- "jsdom": "*",
- "vite": "^6.4.0 || ^7.0.0 || ^8.0.0"
- },
- "peerDependenciesMeta": {
- "@edge-runtime/vm": {
- "optional": true
- },
- "@opentelemetry/api": {
- "optional": true
- },
- "@types/node": {
- "optional": true
- },
- "@vitest/browser-playwright": {
- "optional": true
- },
- "@vitest/browser-preview": {
- "optional": true
- },
- "@vitest/browser-webdriverio": {
- "optional": true
- },
- "@vitest/coverage-istanbul": {
- "optional": true
- },
- "@vitest/coverage-v8": {
- "optional": true
- },
- "@vitest/ui": {
- "optional": true
- },
- "happy-dom": {
- "optional": true
- },
- "jsdom": {
- "optional": true
- },
- "vite": {
- "optional": false
- }
- }
- },
- "node_modules/why-is-node-running": {
- "version": "3.2.1",
- "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-3.2.1.tgz",
- "integrity": "sha512-Tb2FUhB4vUsGQlfSquQLYkApkuPAFQXGFzxWKHHumVz2dK+X1RUm/HnID4+TfIGYJ1kTcwOaCk/buYCEJr6YjQ==",
- "dev": true,
- "license": "MIT",
- "bin": {
- "why-is-node-running": "cli.js"
- },
- "engines": {
- "node": ">=20.11"
- }
- }
- }
-}
diff --git a/07_js-debug/unterricht/tag44/01_vitest-shop/package.json b/07_js-debug/unterricht/tag44/01_vitest-shop/package.json
index f0556a6..91bb51f 100644
--- a/07_js-debug/unterricht/tag44/01_vitest-shop/package.json
+++ b/07_js-debug/unterricht/tag44/01_vitest-shop/package.json
@@ -4,6 +4,9 @@
"version": "0.0.0",
"type": "module",
"scripts": {
+ "test": "vitest",
+ "test:watch": "vitest --watch",
+ "test:ui": "vitest --ui",
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "oxlint",
@@ -17,6 +20,9 @@
"devDependencies": {
"@babel/core": "^8.1.0",
"@rolldown/plugin-babel": "^0.3.0",
+ "@testing-library/jest-dom": "^7.0.1",
+ "@testing-library/react": "^16.3.3",
+ "@testing-library/user-event": "^14.6.8",
"@types/babel__core": "^7.20.5",
"@types/node": "^26.6.6",
"@types/react": "^19.3.0",
@@ -24,6 +30,7 @@
"@vitejs/plugin-react": "^6.2.1",
"@vitest/ui": "^5.1.0",
"babel-plugin-react-compiler": "^1.0.0",
+ "jsdom": "^30.1.3",
"oxlint": "^1.91.0",
"typescript": "~7.0.2",
"vite": "^8.3.6",
diff --git a/07_js-debug/unterricht/tag44/01_vitest-shop/src/pages/root.tsx b/07_js-debug/unterricht/tag44/01_vitest-shop/src/pages/root.tsx
index cf40e02..a20d395 100644
--- a/07_js-debug/unterricht/tag44/01_vitest-shop/src/pages/root.tsx
+++ b/07_js-debug/unterricht/tag44/01_vitest-shop/src/pages/root.tsx
@@ -5,24 +5,20 @@ import Footer from '../components/Footer';
const categories = [
{
- imgSrc:
- 'https://images.unsplash.com/photo-1530011940847-04cba36df39f?q=80&w=1920',
- imgAlt:
- 'Two female models sitting on a bed. Photo by Billie (@billiebodybrand) on Unsplash.',
+ imgSrc: 'https://images.unsplash.com/photo-1530011940847-04cba36df39f?q=80&w=1920',
+ imgAlt: 'Two female models sitting on a bed. Photo by Billie (@billiebodybrand) on Unsplash.',
href: '/women',
linkText: 'Women Clothing',
},
{
- imgSrc:
- 'https://images.unsplash.com/photo-1595909315417-2edd382a56dc?q=80&w=1920',
+ imgSrc: 'https://images.unsplash.com/photo-1595909315417-2edd382a56dc?q=80&w=1920',
imgAlt:
'Jumping rope, smartphone, sports bra, a pair of sneakers, and a water bottle. Photo by erica steeves on Unsplash.',
href: '/accessories',
linkText: 'Accessories',
},
{
- imgSrc:
- 'https://images.unsplash.com/photo-1467779009031-53938b78ca38?q=80&w=1920',
+ imgSrc: 'https://images.unsplash.com/photo-1467779009031-53938b78ca38?q=80&w=1920',
imgAlt: 'Group of men sitting in a van. Photo by Luke Porter on Unsplash.',
href: '/men',
linkText: 'Men Clothing',
diff --git a/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/Hero.test.tsx b/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/Hero.test.tsx
new file mode 100644
index 0000000..806efc3
--- /dev/null
+++ b/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/Hero.test.tsx
@@ -0,0 +1,36 @@
+import Hero from '../components/Hero';
+import { render, screen } from '@testing-library/react';
+import { it, expect, describe } from 'vitest';
+
+// import '@testing-library/jest-dom/vitest';
+
+// Test Suite
+describe('Hero', () => {
+ it('should render h1 element', () => {
+ render( );
+
+ const heading = screen.getByRole('heading', { level: 1 });
+ expect(heading).toBeInTheDocument();
+ });
+
+ it('should render the company name when passed', () => {
+ render( );
+
+ screen.debug();
+
+ // Arrange
+ const heading = screen.getByRole('heading', { level: 1 });
+
+ // Act & Assert
+ expect(heading).toHaveTextContent('My Company');
+ // expect(heading).toBeInTheDocument();
+ });
+
+ it('should render the company name "Vogue Junction" as default', () => {
+ render( );
+ // Arrange
+ const heading = screen.getByRole('heading', { level: 1 });
+ // Act & Assert
+ expect(heading).toHaveTextContent(/Vogue Junction/i);
+ });
+});
diff --git a/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/ImageGallery.test.tsx b/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/ImageGallery.test.tsx
new file mode 100644
index 0000000..8418536
--- /dev/null
+++ b/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/ImageGallery.test.tsx
@@ -0,0 +1,62 @@
+import { describe, it, expect } from 'vitest';
+// import { fireEvent } from '@testing-library/react';
+import { screen, render } from '@testing-library/react';
+import { userEvent } from '@testing-library/user-event';
+
+import { fakeProduct } from './__mocks__/product.mock';
+
+// component
+import ImageGallery from '../components/ImageGallery';
+
+const product = fakeProduct;
+
+const renderComponent = () => {
+ render( );
+ // screen.debug();
+
+ const images = screen.getAllByAltText(product.title);
+ return {
+ images,
+ mainImage: images[images.length - 1],
+ buttons: screen.getAllByRole('button'),
+ };
+};
+
+describe('ImageGallery', () => {
+ it('should render three buttons', () => {
+ // Arrange
+ const { buttons } = renderComponent();
+ // Act & Assert
+ expect(buttons).toHaveLength(3);
+ });
+ it('should render four images', () => {
+ // Arrange
+ const { images } = renderComponent();
+ // Act & Assert
+ expect(images).toHaveLength(4);
+ });
+ it('should render the first image as main image', () => {
+ // Arrange
+ const { mainImage } = renderComponent();
+
+ expect(mainImage).toBeInTheDocument();
+ expect(mainImage).toHaveAttribute(
+ 'src',
+ product.images[0], // 'https://cdn.dummyjson.com/products/images/womens-bags/Prada%20Women%20Bag/1.png',
+ );
+ });
+ it('should change the main image when the last image was clicked', async () => {
+ // Arrange
+ const { mainImage, buttons } = renderComponent();
+
+ const user = userEvent.setup();
+
+ // fireEvent.click(buttons[2]);
+ await user.click(buttons[2]); // best practice
+
+ expect(mainImage).toHaveAttribute(
+ 'src',
+ product.images[2], // 'https://cdn.dummyjson.com/products/images/womens-bags/Prada%20Women%20Bag/3.png',
+ );
+ });
+});
diff --git a/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/ProductList.test.tsx b/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/ProductList.test.tsx
new file mode 100644
index 0000000..69a65ce
--- /dev/null
+++ b/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/ProductList.test.tsx
@@ -0,0 +1,42 @@
+import { describe, it, expect } from 'vitest';
+
+import { fakeProducts } from './__mocks__/products.mock';
+import ProductList from '../components/ProductList';
+import { render, screen } from '@testing-library/react';
+
+import { MemoryRouter } from 'react-router-dom';
+
+const products = fakeProducts;
+
+describe('ProductList', () => {
+ it('should render the correct number of products', () => {
+ render(
+
+
+ ,
+ );
+
+ // screen.debug();
+ const headings = screen.getAllByRole('heading', { level: 3 });
+
+ expect(headings).toHaveLength(products.length);
+ });
+
+ it('should render the product list cards correctly with the title, image and price', () => {
+ render(
+
+
+ ,
+ );
+
+ products.forEach((product) => {
+ const { title, thumbnail, price } = product;
+ const image = screen.getByAltText(title);
+
+ expect(screen.getByText(title)).toBeInTheDocument(); // title
+ expect(image).toBeInTheDocument(); // image alt text
+ expect(image).toHaveAttribute('src', thumbnail); // image src
+ expect(screen.getByText(`$${price}`)).toBeInTheDocument(); // price
+ });
+ });
+});
diff --git a/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/__mocks__/product.mock.ts b/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/__mocks__/product.mock.ts
new file mode 100644
index 0000000..90bd312
--- /dev/null
+++ b/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/__mocks__/product.mock.ts
@@ -0,0 +1,56 @@
+export const fakeProduct = {
+ id: 174,
+ title: 'Prada Women Bag',
+ description:
+ "The Prada Women Bag is an iconic designer bag that exudes elegance and luxury. Crafted with precision and featuring the Prada logo, it's a statement piece for fashion enthusiasts.",
+ category: 'womens-bags',
+ price: 599.99,
+ discountPercentage: 18.3,
+ rating: 3.52,
+ stock: 43,
+ tags: ['fashion accessories', 'designer bags'],
+ brand: 'Prada',
+ sku: 'WXX4YTJM',
+ weight: 4,
+ dimensions: { width: 23.45, height: 16.1, depth: 5.78 },
+ warrantyInformation: '1 week warranty',
+ shippingInformation: 'Ships overnight',
+ availabilityStatus: 'In Stock',
+ reviews: [
+ {
+ rating: 5,
+ comment: 'Excellent quality!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Samantha Howard',
+ reviewerEmail: 'samantha.howard@x.dummyjson.com',
+ },
+ {
+ rating: 4,
+ comment: 'Would buy again!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Henry Hill',
+ reviewerEmail: 'henry.hill@x.dummyjson.com',
+ },
+ {
+ rating: 3,
+ comment: 'Not worth the price!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Lucas Ramirez',
+ reviewerEmail: 'lucas.ramirez@x.dummyjson.com',
+ },
+ ],
+ returnPolicy: '7 days return policy',
+ minimumOrderQuantity: 1,
+ meta: {
+ createdAt: new Date('2024-05-23T08:56:21.627Z'),
+ updatedAt: new Date('2024-05-23T08:56:21.627Z'),
+ barcode: '4590351278063',
+ qrCode: 'https://assets.dummyjson.com/public/qr-code.png',
+ },
+ images: [
+ 'https://cdn.dummyjson.com/products/images/womens-bags/Prada%20Women%20Bag/1.png',
+ 'https://cdn.dummyjson.com/products/images/womens-bags/Prada%20Women%20Bag/2.png',
+ 'https://cdn.dummyjson.com/products/images/womens-bags/Prada%20Women%20Bag/3.png',
+ ],
+ thumbnail: 'https://cdn.dummyjson.com/products/images/womens-bags/Prada%20Women%20Bag/thumbnail.png',
+};
diff --git a/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/__mocks__/products.mock.ts b/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/__mocks__/products.mock.ts
new file mode 100644
index 0000000..bfe6133
--- /dev/null
+++ b/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/__mocks__/products.mock.ts
@@ -0,0 +1,168 @@
+export const fakeProducts = [
+ {
+ id: 174,
+ title: 'Prada Women Bag',
+ description:
+ "The Prada Women Bag is an iconic designer bag that exudes elegance and luxury. Crafted with precision and featuring the Prada logo, it's a statement piece for fashion enthusiasts.",
+ category: 'womens-bags',
+ price: 599.99,
+ discountPercentage: 18.3,
+ rating: 3.52,
+ stock: 43,
+ tags: ['fashion accessories', 'designer bags'],
+ brand: 'Prada',
+ sku: 'WXX4YTJM',
+ weight: 4,
+ dimensions: { width: 23.45, height: 16.1, depth: 5.78 },
+ warrantyInformation: '1 week warranty',
+ shippingInformation: 'Ships overnight',
+ availabilityStatus: 'In Stock',
+ reviews: [
+ {
+ rating: 5,
+ comment: 'Excellent quality!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Samantha Howard',
+ reviewerEmail: 'samantha.howard@x.dummyjson.com',
+ },
+ {
+ rating: 4,
+ comment: 'Would buy again!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Henry Hill',
+ reviewerEmail: 'henry.hill@x.dummyjson.com',
+ },
+ {
+ rating: 3,
+ comment: 'Not worth the price!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Lucas Ramirez',
+ reviewerEmail: 'lucas.ramirez@x.dummyjson.com',
+ },
+ ],
+ returnPolicy: '7 days return policy',
+ minimumOrderQuantity: 1,
+ meta: {
+ createdAt: new Date('2024-05-23T08:56:21.627Z'),
+ updatedAt: new Date('2024-05-23T08:56:21.627Z'),
+ barcode: '4590351278063',
+ qrCode: 'https://assets.dummyjson.com/public/qr-code.png',
+ },
+ images: [
+ 'https://cdn.dummyjson.com/products/images/womens-bags/Prada%20Women%20Bag/1.png',
+ 'https://cdn.dummyjson.com/products/images/womens-bags/Prada%20Women%20Bag/2.png',
+ 'https://cdn.dummyjson.com/products/images/womens-bags/Prada%20Women%20Bag/3.png',
+ ],
+ thumbnail: 'https://cdn.dummyjson.com/products/images/womens-bags/Prada%20Women%20Bag/thumbnail.png',
+ },
+ {
+ id: 90,
+ title: 'Puma Future Rider Trainers',
+ description:
+ 'The Puma Future Rider Trainers offer a blend of retro style and modern comfort. Perfect for casual wear, these trainers provide a fashionable and comfortable option for everyday use.',
+ category: 'mens-shoes',
+ price: 89.99,
+ discountPercentage: 3.64,
+ rating: 4.85,
+ stock: 10,
+ tags: ['footwear', 'casual shoes'],
+ brand: 'Puma',
+ sku: '64ORN32I',
+ weight: 8,
+ dimensions: { width: 14.58, height: 25.54, depth: 19.57 },
+ warrantyInformation: '2 year warranty',
+ shippingInformation: 'Ships in 1 month',
+ availabilityStatus: 'In Stock',
+ reviews: [
+ {
+ rating: 5,
+ comment: 'Very happy with my purchase!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Lucas Allen',
+ reviewerEmail: 'lucas.allen@x.dummyjson.com',
+ },
+ {
+ rating: 4,
+ comment: 'Awesome product!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Mason Pearson',
+ reviewerEmail: 'mason.pearson@x.dummyjson.com',
+ },
+ {
+ rating: 4,
+ comment: 'Very satisfied!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Hunter Gordon',
+ reviewerEmail: 'hunter.gordon@x.dummyjson.com',
+ },
+ ],
+ returnPolicy: '90 days return policy',
+ minimumOrderQuantity: 9,
+ meta: {
+ createdAt: new Date('2024-05-23T08:56:21.627Z'),
+ updatedAt: new Date('2024-05-23T08:56:21.627Z'),
+ barcode: '3562849555769',
+ qrCode: 'https://assets.dummyjson.com/public/qr-code.png',
+ },
+ images: [
+ 'https://cdn.dummyjson.com/products/images/mens-shoes/Puma%20Future%20Rider%20Trainers/1.png',
+ 'https://cdn.dummyjson.com/products/images/mens-shoes/Puma%20Future%20Rider%20Trainers/2.png',
+ 'https://cdn.dummyjson.com/products/images/mens-shoes/Puma%20Future%20Rider%20Trainers/3.png',
+ 'https://cdn.dummyjson.com/products/images/mens-shoes/Puma%20Future%20Rider%20Trainers/4.png',
+ ],
+ thumbnail: 'https://cdn.dummyjson.com/products/images/mens-shoes/Puma%20Future%20Rider%20Trainers/thumbnail.png',
+ },
+ {
+ id: 101,
+ title: 'Apple AirPods Max Silver',
+ description:
+ 'The Apple AirPods Max in Silver are premium over-ear headphones with high-fidelity audio, adaptive EQ, and active noise cancellation. Experience immersive sound in style.',
+ category: 'mobile-accessories',
+ price: 549.99,
+ discountPercentage: 11.7,
+ rating: 3.11,
+ stock: 7,
+ tags: ['electronics', 'over-ear headphones'],
+ brand: 'Apple',
+ sku: 'HPK82VDE',
+ weight: 4,
+ dimensions: { width: 7.73, height: 18.36, depth: 17.87 },
+ warrantyInformation: '3 months warranty',
+ shippingInformation: 'Ships in 1 month',
+ availabilityStatus: 'In Stock',
+ reviews: [
+ {
+ rating: 1,
+ comment: 'Waste of money!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Harper Kelly',
+ reviewerEmail: 'harper.kelly@x.dummyjson.com',
+ },
+ {
+ rating: 3,
+ comment: 'Not as described!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Abigail Rivera',
+ reviewerEmail: 'abigail.rivera@x.dummyjson.com',
+ },
+ {
+ rating: 5,
+ comment: 'Excellent quality!',
+ date: new Date('2024-05-23T08:56:21.627Z'),
+ reviewerName: 'Nora Russell',
+ reviewerEmail: 'nora.russell@x.dummyjson.com',
+ },
+ ],
+ returnPolicy: '90 days return policy',
+ minimumOrderQuantity: 2,
+ meta: {
+ createdAt: new Date('2024-05-23T08:56:21.627Z'),
+ updatedAt: new Date('2024-05-23T08:56:21.627Z'),
+ barcode: '9261269777547',
+ qrCode: 'https://assets.dummyjson.com/public/qr-code.png',
+ },
+ images: ['https://cdn.dummyjson.com/products/images/mobile-accessories/Apple%20AirPods%20Max%20Silver/1.png'],
+ thumbnail:
+ 'https://cdn.dummyjson.com/products/images/mobile-accessories/Apple%20AirPods%20Max%20Silver/thumbnail.png',
+ },
+];
diff --git a/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/add.test.ts b/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/add.test.ts
new file mode 100644
index 0000000..cbdd6e1
--- /dev/null
+++ b/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/add.test.ts
@@ -0,0 +1,11 @@
+import { describe, expect, it } from 'vitest';
+import { add } from '../utils/helpers';
+
+describe('add', () => {
+ it('should return 3 when 2 and 1 passed', () => {
+ expect(add(1, 2)).toBe(3);
+ });
+ it('should return 0.3 when 0.2 and 0.1 passed', () => {
+ expect(add(0.2, 0.1)).toBe(0.3);
+ });
+});
diff --git a/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/config/setupTests.ts b/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/config/setupTests.ts
new file mode 100644
index 0000000..13ae235
--- /dev/null
+++ b/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/config/setupTests.ts
@@ -0,0 +1,16 @@
+import { expect, afterEach } from 'vitest';
+import { cleanup } from '@testing-library/react';
+import * as matchers from '@testing-library/jest-dom/matchers';
+
+// types für Testfunktionen
+import '@testing-library/jest-dom/vitest';
+
+// add jest-dom matchers to expect
+expect.extend(matchers);
+
+// Add cleanup function to run after each test
+afterEach(() => {
+ cleanup();
+});
+
+// More setup code here, if needed
diff --git a/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/main.test.ts b/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/main.test.ts
new file mode 100644
index 0000000..d9a601f
--- /dev/null
+++ b/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/main.test.ts
@@ -0,0 +1,19 @@
+import { it, test, expect, describe } from 'vitest';
+
+// Testsuite
+describe('main', () => {
+ // Testcase
+ test('main should pass', () => {
+ // AAA
+ // Arrange
+ const initValue = true;
+ // Acting - Assertion
+ expect(initValue).toBe(true);
+ });
+
+ it('should return a number', () => {
+ expect(1).toBeTypeOf('number');
+ });
+});
+
+// console.log(fn()); // => true
diff --git a/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/multiply.test.ts b/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/multiply.test.ts
new file mode 100644
index 0000000..129d176
--- /dev/null
+++ b/07_js-debug/unterricht/tag44/01_vitest-shop/src/tests/multiply.test.ts
@@ -0,0 +1,11 @@
+import { describe, expect, it } from 'vitest';
+import { multiply } from '../utils/helpers';
+
+describe('multiply', () => {
+ it('should return 10 when 2 and 5 are passed', () => {
+ expect(multiply(2, 5)).toBe(10);
+ });
+ it('should return a number', () => {
+ expect(multiply(1, 2)).toBeTypeOf('number');
+ });
+});
diff --git a/07_js-debug/unterricht/tag44/01_vitest-shop/src/utils/helpers.ts b/07_js-debug/unterricht/tag44/01_vitest-shop/src/utils/helpers.ts
new file mode 100644
index 0000000..81bcc3a
--- /dev/null
+++ b/07_js-debug/unterricht/tag44/01_vitest-shop/src/utils/helpers.ts
@@ -0,0 +1,12 @@
+export const multiply = (a: number, b: number): number => {
+ return Number(a) * Number(b);
+};
+export const add = (a: number, b: number): number => {
+ return parseFloat((Number(a) + Number(b)).toFixed(10));
+};
+
+export default {
+ //multiply: multiply
+ multiply,
+ add,
+};
diff --git a/07_js-debug/unterricht/tag44/01_vitest-shop/vite.config.ts b/07_js-debug/unterricht/tag44/01_vitest-shop/vite.config.ts
index d789a7c..3d7ece3 100644
--- a/07_js-debug/unterricht/tag44/01_vitest-shop/vite.config.ts
+++ b/07_js-debug/unterricht/tag44/01_vitest-shop/vite.config.ts
@@ -1,11 +1,13 @@
-import react, { reactCompilerPreset } from '@vitejs/plugin-react'
-import babel from '@rolldown/plugin-babel'
-import { defineConfig } from 'vite'
+import react, { reactCompilerPreset } from '@vitejs/plugin-react';
+import babel from '@rolldown/plugin-babel';
+import { defineConfig } from 'vitest/config'; // nicht mehr vite
// https://vite.dev/config/
export default defineConfig({
- plugins: [
- react(),
- babel({ presets: [reactCompilerPreset()] })
- ],
-})
+ plugins: [react(), babel({ presets: [reactCompilerPreset()] })],
+ test: {
+ globals: true,
+ environment: 'jsdom',
+ setupFiles: './src/tests/config/setupTests.ts',
+ },
+});