progmaweb
The site and account service of Progmasoft: a Next.js frontend and an ASP.NET Core API.
Clonegit clone https://git.progmasoft.com/progmaweb
Run the unit tests of the site with Vitest
- Commit
740bcb5dc7ea9c0fbcc6efde778e187766815e9b- Author
- Leitwolf11 ·
- Parents
c99ecf77320d
Changes
apps/web/package.json | 9 +- apps/web/tests/catalog.test.mjs | 86 +-- apps/web/tests/content-security-policy.test.mjs | 27 +- apps/web/tests/credentials.test.mjs | 60 +- apps/web/tests/license.test.mjs | 24 +- apps/web/tests/localization.test.mjs | 113 +-- apps/web/tests/news.test.mjs | 45 +- apps/web/tests/policies.test.mjs | 83 +-- apps/web/tests/sites.test.mjs | 78 ++- apps/web/tests/structured-data.test.mjs | 74 +- apps/web/tests/theme.test.mjs | 62 +- apps/web/vitest.config.mts | 25 + pnpm-lock.yaml | 875 +++++++++++++++++------- 13 files changed, 990 insertions(+), 571 deletions(-) diff --git a/apps/web/package.json b/apps/web/package.json index dd2912b..b07acbe 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -12,8 +12,8 @@ "build": "next build", "start": "next start", "check": "next typegen && tsc --noEmit", - "test": "node --experimental-strip-types --test tests/*.test.mjs", - "test:coverage": "c8 --reporter=lcov --reporter=text npm test", + "test": "vitest run", + "test:coverage": "vitest run --coverage", "lint": "eslint . --max-warnings=0", "format": "prettier --write .", "test:layout": "playwright test" @@ -28,10 +28,11 @@ "@types/node": "24.19.2", "@types/react": "19.3.0", "@types/react-dom": "19.3.0", - "c8": "12.0.0", + "@vitest/coverage-v8": "5.1.0", "eslint": "9.39.5", "eslint-config-next": "16.4.5", "prettier": "3.9.10", - "typescript": "6.0.3" + "typescript": "6.0.3", + "vitest": "5.1.0" } } diff --git a/apps/web/tests/catalog.test.mjs b/apps/web/tests/catalog.test.mjs index 8f6bb0a..6e9c1ae 100644 --- a/apps/web/tests/catalog.test.mjs +++ b/apps/web/tests/catalog.test.mjs @@ -1,8 +1,7 @@ // SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com> // SPDX-License-Identifier: AGPL-3.0-or-later -import assert from "node:assert/strict"; -import { test } from "node:test"; +import { expect, test } from "vitest"; import { supportedLocales } from "../lib/localization.ts"; import { filterProducts, @@ -15,78 +14,87 @@ const anything = { query: "" }; test("an empty search finds every project in catalog order", () => { for (const locale of supportedLocales) { - assert.deepEqual( - filterProducts(locale, anything), - [...productSlugs], - locale, - ); + expect(filterProducts(locale, anything), locale).toStrictEqual([ + ...productSlugs, + ]); } }); test("the query matches names, categories and text without regard to case", () => { - assert.deepEqual(filterProducts("en-US", { query: "ARCHER" }), ["archer"]); - assert.deepEqual(filterProducts("en-US", { query: "jvm" }), [ + expect(filterProducts("en-US", { query: "ARCHER" })).toStrictEqual([ "archer", - "etincelle", - ]); - assert.deepEqual(filterProducts("en-US", { query: "spark" }), ["etincelle"]); - assert.deepEqual(filterProducts("en-US", { query: "build system" }), [ - "tazel", ]); - assert.deepEqual(filterProducts("de-DE", { query: "testwerkzeug" }), []); - assert.deepEqual(filterProducts("de-DE", { query: "testen" }), ["catch3"]); - assert.deepEqual(filterProducts("en-US", { query: "no such project" }), []); -}); - -test("category, language and status narrow the search together", () => { - assert.deepEqual(filterProducts("en-US", { query: "", language: "Java" }), [ + expect(filterProducts("en-US", { query: "jvm" })).toStrictEqual([ "archer", "etincelle", ]); - assert.deepEqual(filterProducts("en-US", { query: "", status: "released" }), [ + expect(filterProducts("en-US", { query: "spark" })).toStrictEqual([ + "etincelle", + ]); + expect(filterProducts("en-US", { query: "build system" })).toStrictEqual([ "tazel", + ]); + expect(filterProducts("de-DE", { query: "testwerkzeug" })).toStrictEqual([]); + expect(filterProducts("de-DE", { query: "testen" })).toStrictEqual([ "catch3", - "opentala", ]); - assert.deepEqual( + expect(filterProducts("en-US", { query: "no such project" })).toStrictEqual( + [], + ); +}); + +test("category, language and status narrow the search together", () => { + expect( + filterProducts("en-US", { query: "", language: "Java" }), + ).toStrictEqual(["archer", "etincelle"]); + expect( + filterProducts("en-US", { query: "", status: "released" }), + ).toStrictEqual(["tazel", "catch3", "opentala"]); + expect( filterProducts("en-US", { query: "", language: "Java", category: "data-format", }), - ["archer"], - ); - assert.deepEqual( + ).toStrictEqual(["archer"]); + expect( filterProducts("en-US", { query: "", language: "Java", status: "released", }), - [], - ); + ).toStrictEqual([]); }); test("the query string becomes a filter; unknown values ask for anything", () => { - assert.deepEqual( + expect( parseProductFilter({ q: " ide ", category: "ide", language: "Java", status: "released", }), - { query: "ide", category: "ide", language: "Java", status: "released" }, - ); - assert.deepEqual( + ).toStrictEqual({ + query: "ide", + category: "ide", + language: "Java", + status: "released", + }); + expect( parseProductFilter({ q: ["a", "b"], category: "games", language: "Rust", status: "dead", }), - { query: "a", category: undefined, language: undefined, status: undefined }, - ); - assert.equal(parseProductFilter({ q: "x".repeat(500) }).query.length, 100); - assert.deepEqual(parseProductFilter({}), { + ).toStrictEqual({ + query: "a", + category: undefined, + language: undefined, + status: undefined, + }); + expect(parseProductFilter({ q: "x".repeat(500) }).query.length).toBe(100); + expect(parseProductFilter({})).toStrictEqual({ query: "", category: undefined, language: undefined, @@ -97,7 +105,7 @@ test("the query string becomes a filter; unknown values ask for anything", () => test("releases are newest first", () => { const list = releases(); for (let i = 1; i < list.length; i++) { - assert.ok(list[i - 1].release.date >= list[i].release.date); + expect(list[i - 1].release.date >= list[i].release.date).toBeTruthy(); } - assert.ok(list.some(({ slug }) => slug === "catch3")); + expect(list.some(({ slug }) => slug === "catch3")).toBeTruthy(); }); diff --git a/apps/web/tests/content-security-policy.test.mjs b/apps/web/tests/content-security-policy.test.mjs index 43ab8d4..376ad20 100644 --- a/apps/web/tests/content-security-policy.test.mjs +++ b/apps/web/tests/content-security-policy.test.mjs @@ -1,8 +1,7 @@ // SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com> // SPDX-License-Identifier: AGPL-3.0-or-later -import assert from "node:assert/strict"; -import { test } from "node:test"; +import { expect, test } from "vitest"; import { contentSecurityPolicy, createNonce, @@ -19,36 +18,36 @@ function directives(policy) { test("a nonce is 128 random bits and differs on every call", () => { const nonces = new Set(Array.from({ length: 100 }, createNonce)); - assert.equal(nonces.size, 100); + expect(nonces.size).toBe(100); for (const nonce of nonces) { - assert.match(nonce, /^[A-Za-z0-9+/]{22}==$/); + expect(nonce).toMatch(/^[A-Za-z0-9+/]{22}==$/); } }); test("scripts run from this host, with the nonce, or from Cloudflare's beacon", () => { const policy = directives(contentSecurityPolicy("abc", false)); - assert.deepEqual(policy.get("script-src"), [ + expect(policy.get("script-src")).toStrictEqual([ "'self'", "'nonce-abc'", "https://static.cloudflareinsights.com", ]); - assert.deepEqual(policy.get("connect-src"), [ + expect(policy.get("connect-src")).toStrictEqual([ "'self'", "https://cloudflareinsights.com", ]); - assert.deepEqual(policy.get("object-src"), ["'none'"]); - assert.deepEqual(policy.get("frame-ancestors"), ["'none'"]); - assert.deepEqual(policy.get("base-uri"), ["'self'"]); + expect(policy.get("object-src")).toStrictEqual(["'none'"]); + expect(policy.get("frame-ancestors")).toStrictEqual(["'none'"]); + expect(policy.get("base-uri")).toStrictEqual(["'self'"]); // OAuth ends in redirects to other hosts after a form is sent. - assert.equal(policy.has("form-action"), false); + expect(policy.has("form-action")).toBe(false); for (const values of policy.values()) { - assert.equal(values.includes("'unsafe-eval'"), false); - assert.equal(values.includes("'strict-dynamic'"), false); + expect(values.includes("'unsafe-eval'")).toBe(false); + expect(values.includes("'strict-dynamic'")).toBe(false); } - assert.equal(policy.get("script-src").includes("'unsafe-inline'"), false); + expect(policy.get("script-src").includes("'unsafe-inline'")).toBe(false); }); test("only the development server may evaluate code", () => { const policy = directives(contentSecurityPolicy("abc", true)); - assert.ok(policy.get("script-src").includes("'unsafe-eval'")); + expect(policy.get("script-src").includes("'unsafe-eval'")).toBeTruthy(); }); diff --git a/apps/web/tests/credentials.test.mjs b/apps/web/tests/credentials.test.mjs index 58d2fd4..e52e9ea 100644 --- a/apps/web/tests/credentials.test.mjs +++ b/apps/web/tests/credentials.test.mjs @@ -1,8 +1,7 @@ // SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com> // SPDX-License-Identifier: AGPL-3.0-or-later -import assert from "node:assert/strict"; -import { test } from "node:test"; +import { expect, test } from "vitest"; import { applicationKinds, authorizeRoute, @@ -30,7 +29,7 @@ function shape(value) { test("every language has every message of the OAuth pages", () => { const english = shape(credentialsMessages["en-US"]); for (const locale of supportedLocales) { - assert.deepEqual(shape(credentialsMessages[locale]), english, locale); + expect(shape(credentialsMessages[locale]), locale).toStrictEqual(english); } }); @@ -38,45 +37,45 @@ test("every type and scope has its text in every language", () => { for (const locale of supportedLocales) { const messages = credentialsMessages[locale]; for (const kind of applicationKinds) { - assert.ok(messages.kinds[kind].title, `${locale} ${kind}`); - assert.ok(messages.kinds[kind].description, `${locale} ${kind}`); + expect(messages.kinds[kind].title, `${locale} ${kind}`).toBeTruthy(); + expect( + messages.kinds[kind].description, + `${locale} ${kind}`, + ).toBeTruthy(); } for (const scope of oauthScopes) { - assert.ok(messages.scopes[scope], `${locale} ${scope}`); + expect(messages.scopes[scope], `${locale} ${scope}`).toBeTruthy(); } } }); test("the pages people see map to the authorize host's routes", () => { - assert.equal(authorizeRoute("/"), "/authorize"); - assert.equal(authorizeRoute("/signin"), "/authorize/signin"); - assert.equal(authorizeRoute("/consent/"), "/authorize/consent"); - assert.equal( - authorizeRoute("/account/applications"), + expect(authorizeRoute("/")).toBe("/authorize"); + expect(authorizeRoute("/signin")).toBe("/authorize/signin"); + expect(authorizeRoute("/consent/")).toBe("/authorize/consent"); + expect(authorizeRoute("/account/applications")).toBe( "/authorize/applications", ); for (const path of ["/login", "/register", "/credentials", "/new", "/x"]) { - assert.equal(authorizeRoute(path), null, path); + expect(authorizeRoute(path), path).toBe(null); } }); test("the issuer has its home page only", () => { - assert.equal(issuerRoute("/"), "/issuer"); + expect(issuerRoute("/")).toBe("/issuer"); for (const path of ["/signin", "/consent", "/account/applications"]) { - assert.equal(issuerRoute(path), null, path); + expect(issuerRoute(path), path).toBe(null); } }); test("the public pages of the console map to the internal routes", () => { - assert.equal(consoleRoute("/"), "/console"); - assert.equal(consoleRoute("/credentials/"), "/console/credentials"); - assert.equal(consoleRoute("/credentials/new"), "/console/credentials/new"); - assert.equal( - consoleRoute("/credentials/new/spa"), + expect(consoleRoute("/")).toBe("/console"); + expect(consoleRoute("/credentials/")).toBe("/console/credentials"); + expect(consoleRoute("/credentials/new")).toBe("/console/credentials/new"); + expect(consoleRoute("/credentials/new/spa")).toBe( "/console/credentials/new/spa", ); - assert.equal( - consoleRoute("/credentials/pmo_abc"), + expect(consoleRoute("/credentials/pmo_abc")).toBe( "/console/credentials/pmo_abc", ); for (const path of [ @@ -88,13 +87,12 @@ test("the public pages of the console map to the internal routes", () => { "/credentials/new/spa/x", "/login", ]) { - assert.equal(consoleRoute(path), null, path); + expect(consoleRoute(path), path).toBe(null); } }); test("the sign-in page only returns to this host", () => { - assert.equal( - localReturnUrl("/connect/authorize?client_id=x"), + expect(localReturnUrl("/connect/authorize?client_id=x")).toBe( "/connect/authorize?client_id=x", ); for (const value of [ @@ -106,19 +104,17 @@ test("the sign-in page only returns to this host", () => { null, undefined, ]) { - assert.equal(localReturnUrl(value), "/", String(value)); + expect(localReturnUrl(value), String(value)).toBe("/"); } - assert.equal( - signInPath("/credentials/new/web"), + expect(signInPath("/credentials/new/web")).toBe( "/signin?ReturnUrl=%2Fcredentials%2Fnew%2Fweb", ); }); test("text areas become distinct addresses and messages fill their placeholders", () => { - assert.deepEqual( + expect( lines(" https://a.example/cb \n\nhttps://a.example/cb\nb "), - ["https://a.example/cb", "b"], - ); - assert.equal(format("Allow {name}?", { name: "Example" }), "Allow Example?"); - assert.equal(format("{count} tokens", { count: 10 }), "10 tokens"); + ).toStrictEqual(["https://a.example/cb", "b"]); + expect(format("Allow {name}?", { name: "Example" })).toBe("Allow Example?"); + expect(format("{count} tokens", { count: 10 })).toBe("10 tokens"); }); diff --git a/apps/web/tests/license.test.mjs b/apps/web/tests/license.test.mjs index d55f2d9..d74b9f1 100644 --- a/apps/web/tests/license.test.mjs +++ b/apps/web/tests/license.test.mjs @@ -1,8 +1,7 @@ // SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com> // SPDX-License-Identifier: AGPL-3.0-or-later -import assert from "node:assert/strict"; -import { test } from "node:test"; +import { expect, test } from "vitest"; import { licenseMessages, licensePages, @@ -13,14 +12,12 @@ import { supportedLocales } from "../lib/localization.ts"; import { licenseRoute } from "../lib/sites.ts"; test("license.progmasoft.com serves the list and the three pages of PM-SPL 1.0", () => { - assert.equal(licenseRoute("/"), "/license"); + expect(licenseRoute("/")).toBe("/license"); for (const page of licensePages) { - assert.equal( - licenseRoute(`/pm-spl/1.0/${page}/`), + expect(licenseRoute(`/pm-spl/1.0/${page}/`)).toBe( `/license/pm-spl/1.0/${page}`, ); - assert.equal( - licenseRoute(`/pm-spl/1.0/${page}`), + expect(licenseRoute(`/pm-spl/1.0/${page}`)).toBe( `/license/pm-spl/1.0/${page}`, ); } @@ -31,7 +28,7 @@ test("license.progmasoft.com serves the list and the three pages of PM-SPL 1.0", "/faq", "/pm-spl/1.0/faq/x", ]) { - assert.equal(licenseRoute(path), null, path); + expect(licenseRoute(path), path).toBe(null); } }); @@ -49,7 +46,7 @@ function shape(value) { test("every language has the same pages, questions and categories as English", () => { const english = shape(licenseMessages["en-US"]); for (const locale of supportedLocales) { - assert.deepEqual(shape(licenseMessages[locale]), english, locale); + expect(shape(licenseMessages[locale]), locale).toStrictEqual(english); const strings = []; const collect = (value) => { if (typeof value === "string") strings.push(value); @@ -57,17 +54,16 @@ test("every language has the same pages, questions and categories as English", ( Object.values(value).forEach(collect); }; collect(licenseMessages[locale]); - for (const text of strings) assert.notEqual(text.trim(), "", locale); + for (const text of strings) expect(text.trim(), locale).not.toBe(""); } }); test("the identifiers and the texts are those PM-SPL 1.0 was published with", () => { - assert.deepEqual(pmSplIdentifiers, [ + expect(pmSplIdentifiers).toStrictEqual([ "LicenseRef-PM-SPL-1.0-only", "LicenseRef-PM-SPL-1.0-or-later", ]); - assert.deepEqual( - pmSplTexts.map(([, url]) => url), + expect(pmSplTexts.map(([, url]) => url)).toStrictEqual( ["txt", "md", "rst"].map( (extension) => `https://storage.progmasoft.com/pm-spl/1.0/LICENSE-1.0.${extension}`, @@ -77,6 +73,6 @@ test("the identifiers and the texts are those PM-SPL 1.0 was published with", () const letters = licenseMessages[locale].categories.items.map( (item) => item.letter, ); - assert.deepEqual(letters, ["A", "B", "X"], locale); + expect(letters, locale).toStrictEqual(["A", "B", "X"]); } }); diff --git a/apps/web/tests/localization.test.mjs b/apps/web/tests/localization.test.mjs index 654d5ab..3b550b7 100644 --- a/apps/web/tests/localization.test.mjs +++ b/apps/web/tests/localization.test.mjs @@ -1,8 +1,7 @@ // SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com> // SPDX-License-Identifier: AGPL-3.0-or-later -import assert from "node:assert/strict"; -import { test } from "node:test"; +import { expect, test } from "vitest"; import { getMessages, isLocale, @@ -16,10 +15,10 @@ import { import { homeMessages } from "../lib/home-messages.ts"; test("only the published locales are accepted", () => { - assert.deepEqual(supportedLocales, ["en-US", "de-DE", "ru-RU", "fr-FR"]); - assert.equal(isLocale("en-US"), true); - assert.equal(isLocale("de-DE"), true); - assert.equal(isLocale("ru-RU"), true); + expect(supportedLocales).toStrictEqual(["en-US", "de-DE", "ru-RU", "fr-FR"]); + expect(isLocale("en-US")).toBe(true); + expect(isLocale("de-DE")).toBe(true); + expect(isLocale("ru-RU")).toBe(true); for (const value of [ "en", "de", @@ -32,7 +31,7 @@ test("only the published locales are accepted", () => { "", undefined, ]) { - assert.equal(isLocale(value), false, `unexpected locale: ${value}`); + expect(isLocale(value), `unexpected locale: ${value}`).toBe(false); } }); @@ -45,18 +44,18 @@ test("both locales give the account routes distinct page metadata", () => { "loginTitle", "registerTitle", ]) { - assert.equal(typeof english[key], "string"); - assert.equal(typeof german[key], "string"); - assert.notEqual(english[key].trim(), ""); - assert.notEqual(german[key].trim(), ""); + expect(typeof english[key]).toBe("string"); + expect(typeof german[key]).toBe("string"); + expect(english[key].trim()).not.toBe(""); + expect(german[key].trim()).not.toBe(""); } - assert.notEqual(english.loginTitle, german.loginTitle); - assert.notEqual(english.registerTitle, german.registerTitle); + expect(english.loginTitle).not.toBe(german.loginTitle); + expect(english.registerTitle).not.toBe(german.registerTitle); }); test("each supported locale resolves to its own complete message tree", () => { for (const locale of supportedLocales) { - assert.strictEqual(getMessages(locale), messages[locale]); + expect(getMessages(locale)).toBe(messages[locale]); } function shape(value) { @@ -66,22 +65,22 @@ test("each supported locale resolves to its own complete message tree", () => { Object.entries(value).map(([key, child]) => [key, shape(child)]), ); } - assert.equal(typeof value, "string"); - assert.notEqual(value.trim(), ""); + expect(typeof value).toBe("string"); + expect(value.trim()).not.toBe(""); return "text"; } - assert.deepEqual(shape(messages["de-DE"]), shape(messages["en-US"])); + expect(shape(messages["de-DE"])).toStrictEqual(shape(messages["en-US"])); }); test("the language cookie is shared by production hosts and host-only elsewhere", () => { - assert.equal(localeCookieName, "progmasoft_locale"); + expect(localeCookieName).toBe("progmasoft_locale"); for (const host of [ "progmasoft.com", "account.progmasoft.com", "product.progmasoft.com", ]) { - assert.equal(localeCookieOptions(host, true).domain, ".progmasoft.com"); + expect(localeCookieOptions(host, true).domain).toBe(".progmasoft.com"); } for (const host of [ "localhost", @@ -90,29 +89,25 @@ test("the language cookie is shared by production hosts and host-only elsewhere" "progmasoft.com.example", "", ]) { - assert.equal(localeCookieOptions(host, false).domain, undefined, host); + expect(localeCookieOptions(host, false).domain, host).toBe(undefined); } }); test("the language cookie is unreadable by scripts and secure only over TLS", () => { const overTls = localeCookieOptions("progmasoft.com", true); - assert.equal(overTls.httpOnly, true); - assert.equal(overTls.sameSite, "lax"); - assert.equal(overTls.secure, true); - assert.equal(overTls.maxAge, 60 * 60 * 24 * 365); - assert.equal(localeCookieOptions("localhost", false).secure, false); + expect(overTls.httpOnly).toBe(true); + expect(overTls.sameSite).toBe("lax"); + expect(overTls.secure).toBe(true); + expect(overTls.maxAge).toBe(60 * 60 * 24 * 365); + expect(localeCookieOptions("localhost", false).secure).toBe(false); }); test("the request host prefers the forwarded host and drops port and case", () => { - assert.equal( - requestHost("Account.Progmasoft.com", "127.0.0.1:3010"), + expect(requestHost("Account.Progmasoft.com", "127.0.0.1:3010")).toBe( "account.progmasoft.com", ); - assert.equal( - requestHost(null, "account.localhost:3000"), - "account.localhost", - ); - assert.equal(requestHost(null, null), ""); + expect(requestHost(null, "account.localhost:3000")).toBe("account.localhost"); + expect(requestHost(null, null)).toBe(""); }); // The shape of a message tree: object keys, array lengths and leaf types, @@ -144,19 +139,18 @@ function leavesOf(value) { test("every locale has exactly the messages of the default locale", () => { const reference = shapeOf(messages["en-US"]); for (const locale of supportedLocales) { - assert.deepEqual(shapeOf(messages[locale]), reference, locale); + expect(shapeOf(messages[locale]), locale).toStrictEqual(reference); for (const text of leavesOf(messages[locale])) { - assert.equal(typeof text, "string", locale); - assert.notEqual(text.trim(), "", `${locale} has an empty message`); + expect(typeof text, locale).toBe("string"); + expect(text.trim(), `${locale} has an empty message`).not.toBe(""); } } }); test("every locale has a name in its own language for the language menu", () => { - assert.deepEqual(Object.keys(localeNames), [...supportedLocales]); - assert.equal(localeNames["ru-RU"], "Русский"); - assert.equal( - new Set(Object.values(localeNames)).size, + expect(Object.keys(localeNames)).toStrictEqual([...supportedLocales]); + expect(localeNames["ru-RU"]).toBe("Русский"); + expect(new Set(Object.values(localeNames)).size).toBe( supportedLocales.length, ); }); @@ -169,43 +163,52 @@ test("the Russian messages are written in Cyrillic", () => { russian.auth.signIn, russian.dashboard.welcome, ]) { - assert.match(text, /[А-Яа-яЁё]/); + expect(text).toMatch(/[А-Яа-яЁё]/); } - assert.notEqual(russian.auth.signIn, messages["en-US"].auth.signIn); + expect(russian.auth.signIn).not.toBe(messages["en-US"].auth.signIn); }); test("French is published, and Hebrew is retired", async () => { const { retiredLocales } = await import("../lib/localization.ts"); - assert.equal(isLocale("fr-FR"), true); - assert.equal(localeNames["fr-FR"], "Français"); + expect(isLocale("fr-FR")).toBe(true); + expect(localeNames["fr-FR"]).toBe("Français"); const french = messages["fr-FR"]; for (const text of [ french.auth.signIn, french.metadata.homeDescription, french.dashboard.welcome, ]) { - assert.match(text, /[a-zàâçéèêëîïôûùüÿœ]/); - assert.ok(!/[-]/.test(text), text); + expect(text).toMatch(/[a-zàâçéèêëîïôûùüÿœ]/); + expect(!/[-]/.test(text), text).toBeTruthy(); } - assert.notEqual(french.auth.signIn, messages["en-US"].auth.signIn); - assert.deepEqual(retiredLocales, ["he-IL"]); - assert.equal(isLocale("he-IL"), false); + expect(french.auth.signIn).not.toBe(messages["en-US"].auth.signIn); + expect(retiredLocales).toStrictEqual(["he-IL"]); + expect(isLocale("he-IL")).toBe(false); }); test("a ?lang= link stores a published language, and the fallback for a retired one", async () => { const { languageRequest } = await import("../lib/localization.ts"); - assert.deepEqual(languageRequest("fr-FR"), { locale: "fr-FR", status: 307 }); - assert.deepEqual(languageRequest("de-DE"), { locale: "de-DE", status: 307 }); - assert.deepEqual(languageRequest("he-IL"), { locale: "en-US", status: 308 }); + expect(languageRequest("fr-FR")).toStrictEqual({ + locale: "fr-FR", + status: 307, + }); + expect(languageRequest("de-DE")).toStrictEqual({ + locale: "de-DE", + status: 307, + }); + expect(languageRequest("he-IL")).toStrictEqual({ + locale: "en-US", + status: 308, + }); for (const value of [undefined, "", "he", "fr", "tr-TR", "constructor"]) { - assert.equal(languageRequest(value), undefined, `${value}`); + expect(languageRequest(value), `${value}`).toBe(undefined); } }); test("the browser preference selects the language when nothing was chosen", async () => { const { fallbackLocale, negotiateLocale } = await import("../lib/localization.ts"); - assert.equal(fallbackLocale, "en-US"); + expect(fallbackLocale).toBe("en-US"); const cases = [ [null, "en-US"], ["", "en-US"], @@ -232,8 +235,8 @@ test("the browser preference selects the language when nothing was chosen", asyn ["constructor,__proto__", "en-US"], ]; for (const [header, expected] of cases) { - assert.equal(negotiateLocale(header), expected, String(header)); + expect(negotiateLocale(header), String(header)).toBe(expected); } // Only the beginning of an oversized header is read. - assert.equal(negotiateLocale(`${"x,".repeat(2000)}de`), "en-US"); + expect(negotiateLocale(`${"x,".repeat(2000)}de`)).toBe("en-US"); }); diff --git a/apps/web/tests/news.test.mjs b/apps/web/tests/news.test.mjs index f7f721c..04e8afa 100644 --- a/apps/web/tests/news.test.mjs +++ b/apps/web/tests/news.test.mjs @@ -1,8 +1,7 @@ // SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com> // SPDX-License-Identifier: AGPL-3.0-or-later -import assert from "node:assert/strict"; -import { test } from "node:test"; +import { expect, test } from "vitest"; import { supportedLocales } from "../lib/localization.ts"; import { articles, @@ -16,15 +15,13 @@ import { import { products } from "../lib/products.ts"; test("an article's address is its English title in kebab case", () => { - assert.equal( - slugOf("Tazel 0.2.0 shares results through a remote cache"), + expect(slugOf("Tazel 0.2.0 shares results through a remote cache")).toBe( "tazel-0-2-0-shares-results-through-a-remote-cache", ); - assert.equal(slugOf(" C++ & Zig: ready! "), "c-zig-ready"); + expect(slugOf(" C++ & Zig: ready! ")).toBe("c-zig-ready"); for (const article of articles) { - assert.equal(article.slug, slugOf(article.text["en-US"].title)); - assert.equal( - articleUrl(article), + expect(article.slug).toBe(slugOf(article.text["en-US"].title)); + expect(articleUrl(article)).toBe( `https://news.progmasoft.com/${article.slug}`, ); } @@ -32,47 +29,47 @@ test("an article's address is its English title in kebab case", () => { test("every address names one article", () => { const slugs = articles.map((article) => article.slug); - assert.equal(new Set(slugs).size, slugs.length); + expect(new Set(slugs).size).toBe(slugs.length); }); test("articles are newest first", () => { const dates = articles.map((article) => article.date); - assert.deepEqual(dates, [...dates].sort().reverse()); + expect(dates).toStrictEqual([...dates].sort().reverse()); }); test("every article is written in every language", () => { for (const article of articles) { for (const locale of supportedLocales) { const text = article.text[locale]; - assert.ok(text?.title && text.summary, `${article.slug} ${locale}`); - assert.equal( - text.body.length, - article.text["en-US"].body.length, + expect( + text?.title && text.summary, `${article.slug} ${locale}`, + ).toBeTruthy(); + expect(text.body.length, `${article.slug} ${locale}`).toBe( + article.text["en-US"].body.length, ); } } for (const locale of supportedLocales) { - assert.ok(newsMessages[locale].title, locale); + expect(newsMessages[locale].title, locale).toBeTruthy(); } }); test("an article that announces a release points to its notes", () => { for (const article of articles.filter((entry) => entry.release)) { - assert.equal( - releaseNotes(article), + expect(releaseNotes(article)).toBe( products[article.product].latestRelease?.url, ); } }); test("news.progmasoft.com serves the list and each article", () => { - assert.equal(newsRoute("/"), "/news"); + expect(newsRoute("/")).toBe("/news"); const [first] = articles; - assert.equal(newsRoute(`/${first.slug}`), `/news/${first.slug}`); - assert.equal(newsRoute(`/${first.slug}/`), `/news/${first.slug}`); - assert.equal(newsRoute("/no-such-article"), null); - assert.equal(newsRoute("/a/b"), null); - assert.equal(newsRoute("/Tazel"), null); - assert.equal(findArticle(first.slug), first); + expect(newsRoute(`/${first.slug}`)).toBe(`/news/${first.slug}`); + expect(newsRoute(`/${first.slug}/`)).toBe(`/news/${first.slug}`); + expect(newsRoute("/no-such-article")).toBe(null); + expect(newsRoute("/a/b")).toBe(null); + expect(newsRoute("/Tazel")).toBe(null); + expect(findArticle(first.slug)).toBe(first); }); diff --git a/apps/web/tests/policies.test.mjs b/apps/web/tests/policies.test.mjs index 019fed0..d2871b8 100644 --- a/apps/web/tests/policies.test.mjs +++ b/apps/web/tests/policies.test.mjs @@ -1,9 +1,8 @@ // SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com> // SPDX-License-Identifier: AGPL-3.0-or-later -import assert from "node:assert/strict"; import { readFileSync } from "node:fs"; -import { test } from "node:test"; +import { expect, test } from "vitest"; import { messages, supportedLocales } from "../lib/localization.ts"; import { isPolicyVersion, @@ -27,24 +26,28 @@ test("the page and the account API name the same version", () => { new URL("../../api/Accounts/PolicyAcceptance.cs", import.meta.url), "utf8", ); - assert.match(api, new RegExp(`CurrentVersion = "${policyVersion}"`)); - assert.match(policyVersion, /^\d{4}-\d{2}-\d{2}$/); + expect(api).toMatch(new RegExp(`CurrentVersion = "${policyVersion}"`)); + expect(policyVersion).toMatch(/^\d{4}-\d{2}-\d{2}$/); }); test("every language has both policies, part for part", () => { - assert.deepEqual(Object.keys(policies).sort(), [...supportedLocales].sort()); + expect(Object.keys(policies).sort()).toStrictEqual( + [...supportedLocales].sort(), + ); for (const locale of supportedLocales) { for (const kind of ["privacy", "security"]) { const text = policies[locale][kind]; const english = enUS[kind]; - assert.equal(text.sections.length, english.sections.length, locale); + expect(text.sections.length, locale).toBe(english.sections.length); text.sections.forEach((section, index) => { - assert.ok(section.heading.length > 0, `${locale} ${kind} ${index}`); - assert.equal( + expect( + section.heading.length > 0, + `${locale} ${kind} ${index}`, + ).toBeTruthy(); + expect( section.paragraphs.length, - english.sections[index].paragraphs.length, `${locale} ${kind} ${section.heading}`, - ); + ).toBe(english.sections[index].paragraphs.length); }); } } @@ -57,32 +60,30 @@ test("the privacy policy keeps the IP address for marketplace uploads only and s const address = privacy.find((text) => text.startsWith("We keep your IP address for one purpose only."), ); - assert.ok(address); - assert.match( - address, + expect(address).toBeTruthy(); + expect(address).toMatch( /the marketplace will record the IP address each upload came from/, ); - assert.match( - address, + expect(address).toMatch( /The Agenceland MCP Marketplace does not yet take uploads from accounts/, ); - assert.match(address, /competent authorities/); - assert.ok( + expect(address).toMatch(/competent authorities/); + expect( privacy.some((text) => text.startsWith("We do not sell, rent or trade your data"), ), - ); + ).toBeTruthy(); }); test("registration names the policies in every language", () => { for (const locale of supportedLocales) { const { auth } = messages[locale]; - assert.ok(auth.consentPrivacy.length > 0, locale); - assert.ok(auth.consentSecurity.length > 0, locale); - assert.ok(auth.consentRequired.length > 0, locale); - assert.ok(auth.googlePoliciesRequired.length > 0, locale); + expect(auth.consentPrivacy.length > 0, locale).toBeTruthy(); + expect(auth.consentSecurity.length > 0, locale).toBeTruthy(); + expect(auth.consentRequired.length > 0, locale).toBeTruthy(); + expect(auth.googlePoliciesRequired.length > 0, locale).toBeTruthy(); } - assert.deepEqual(policyUrls, { + expect(policyUrls).toStrictEqual({ privacy: "https://progmasoft.com/privacy", security: "https://progmasoft.com/security", }); @@ -91,30 +92,32 @@ test("registration names the policies in every language", () => { test("the newest version names the Agenceland MCP Marketplace and no closed service", () => { for (const locale of supportedLocales) { const text = JSON.stringify(policies[locale]); - assert.doesNotMatch(text, /ViGet|Tazel/, locale); - assert.match(text, /Agenceland MCP Marketplace/, locale); + expect(text, locale).not.toMatch(/ViGet|Tazel/); + expect(text, locale).toMatch(/Agenceland MCP Marketplace/); } // The version of 2026-11-06 stays as it was published. - assert.match(JSON.stringify(enUS20261106), /ViGet does not yet take uploads/); - assert.equal(enUS20261106.versionDate, "6 November 2026"); - assert.equal(enUS.versionDate, "6 December 2026"); + expect(JSON.stringify(enUS20261106)).toMatch( + /ViGet does not yet take uploads/, + ); + expect(enUS20261106.versionDate).toBe("6 November 2026"); + expect(enUS.versionDate).toBe("6 December 2026"); }); test("the version in effect is the newest whose date has come", () => { - assert.deepEqual([...policyVersions], ["2026-11-06", "2026-12-06"]); - assert.equal(policyVersion, policyVersions.at(-1)); - assert.equal(policyInEffect(new Date("2026-11-21T12:00:00Z")), "2026-11-06"); - assert.equal(policyInEffect(new Date("2026-12-05T23:59:59Z")), "2026-11-06"); - assert.equal(policyInEffect(new Date("2026-12-06T00:00:00Z")), "2026-12-06"); - assert.equal(policyInEffect(new Date("2030-01-01T00:00:00Z")), "2026-12-06"); - assert.equal(policyAfter("2026-11-06"), "2026-12-06"); - assert.equal(policyAfter("2026-12-06"), undefined); - assert.ok(isPolicyVersion("2026-11-06")); - assert.ok(!isPolicyVersion("2026-11-07")); - assert.ok(!isPolicyVersion("latest")); + expect([...policyVersions]).toStrictEqual(["2026-11-06", "2026-12-06"]); + expect(policyVersion).toBe(policyVersions.at(-1)); + expect(policyInEffect(new Date("2026-11-21T12:00:00Z"))).toBe("2026-11-06"); + expect(policyInEffect(new Date("2026-12-05T23:59:59Z"))).toBe("2026-11-06"); + expect(policyInEffect(new Date("2026-12-06T00:00:00Z"))).toBe("2026-12-06"); + expect(policyInEffect(new Date("2030-01-01T00:00:00Z"))).toBe("2026-12-06"); + expect(policyAfter("2026-11-06")).toBe("2026-12-06"); + expect(policyAfter("2026-12-06")).toBe(undefined); + expect(isPolicyVersion("2026-11-06")).toBeTruthy(); + expect(!isPolicyVersion("2026-11-07")).toBeTruthy(); + expect(!isPolicyVersion("latest")).toBeTruthy(); for (const locale of supportedLocales) { for (const word of Object.values(policyVersionWords[locale])) { - assert.ok(word.length > 0, locale); + expect(word.length > 0, locale).toBeTruthy(); } } }); diff --git a/apps/web/tests/sites.test.mjs b/apps/web/tests/sites.test.mjs index 15056f1..c9a7436 100644 --- a/apps/web/tests/sites.test.mjs +++ b/apps/web/tests/sites.test.mjs @@ -1,8 +1,7 @@ // SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com> // SPDX-License-Identifier: AGPL-3.0-or-later -import assert from "node:assert/strict"; -import { test } from "node:test"; +import { expect, test } from "vitest"; import { homeMessages } from "../lib/home-messages.ts"; import { supportedLocales } from "../lib/localization.ts"; import { @@ -33,73 +32,78 @@ test("every language has the same home and catalog text", () => { for (const messages of [homeMessages, catalogMessages]) { const english = shape(messages["en-US"]); for (const locale of supportedLocales) { - assert.deepEqual(shape(messages[locale]), english, locale); + expect(shape(messages[locale]), locale).toStrictEqual(english); } } }); test("the catalog lists the projects, each with its repository", () => { - assert.deepEqual( - [...productSlugs], - ["tazel", "catch3", "agenceland", "archer", "etincelle", "opentala"], - ); + expect([...productSlugs]).toStrictEqual([ + "tazel", + "catch3", + "agenceland", + "archer", + "etincelle", + "opentala", + ]); for (const slug of productSlugs) { const product = products[slug]; if (product.site !== undefined) { - assert.match(product.site, /^https:\/\//, slug); + expect(product.site, slug).toMatch(/^https:\/\//); } - assert.match(product.source, /^https:\/\/github\.com\/Progmasoft\//, slug); - assert.equal(product.issues, `${product.source}/issues`, slug); - assert.match(product.started, /^\d{4}-\d{2}-\d{2}$/, slug); - assert.equal( + expect(product.source, slug).toMatch( + /^https:\/\/github\.com\/Progmasoft\//, + ); + expect(product.issues, slug).toBe(`${product.source}/issues`); + expect(product.started, slug).toMatch(/^\d{4}-\d{2}-\d{2}$/); + expect( product.status === "released", - product.latestRelease !== undefined, `${slug}: released exactly when it has a release`, - ); + ).toBe(product.latestRelease !== undefined); } - assert.equal(products.catch3.site, "https://catch3.uk/"); - assert.equal(isProductSlug("viget"), false); - assert.equal(isProductSlug("xide"), false); + expect(products.catch3.site).toBe("https://catch3.uk/"); + expect(isProductSlug("viget")).toBe(false); + expect(isProductSlug("xide")).toBe(false); }); test("the home page has a line for every product", () => { for (const locale of supportedLocales) { for (const slug of productSlugs) { - assert.ok( + expect( homeMessages[locale].lines[slug]?.length > 0, `${locale}: ${slug}`, - ); + ).toBeTruthy(); } } }); test("the product hosts map to their internal routes", () => { - assert.equal(productRoute("/"), "/products"); - assert.equal(productRoute("/tazel"), "/products/tazel"); - assert.equal(productRoute("/catch3/"), "/products/catch3"); - assert.equal(productRoute("/tazel/extra"), null); - assert.equal(productRoute("/../x"), null); + expect(productRoute("/")).toBe("/products"); + expect(productRoute("/tazel")).toBe("/products/tazel"); + expect(productRoute("/catch3/")).toBe("/products/catch3"); + expect(productRoute("/tazel/extra")).toBe(null); + expect(productRoute("/../x")).toBe(null); }); test("the MCP Marketplace has its root alone, in every language", () => { - assert.equal(mcpRoute("/"), "/mcp"); - assert.equal(mcpRoute("/servers"), null); - assert.equal(mcpRoute("/upload"), null); + expect(mcpRoute("/")).toBe("/mcp"); + expect(mcpRoute("/servers")).toBe(null); + expect(mcpRoute("/upload")).toBe(null); const english = shape(mcpMessages["en-US"]); for (const locale of supportedLocales) { - assert.deepEqual(shape(mcpMessages[locale]), english, locale); + expect(shape(mcpMessages[locale]), locale).toStrictEqual(english); } }); test("git.progmasoft.com has its listing and the views of each repository", () => { const sha = "0123456789abcdef0123456789abcdef01234567"; - assert.equal(gitRoute("/"), "/git"); - assert.equal(gitRoute("/tazel"), "/git/tazel"); - assert.equal(gitRoute("/tazel/"), "/git/tazel"); - assert.equal(gitRoute("/tazel/tree"), "/git/tazel/tree"); - assert.equal(gitRoute("/tazel/log"), "/git/tazel/log"); - assert.equal(gitRoute("/tazel/refs"), "/git/tazel/refs"); - assert.equal(gitRoute(`/tazel/commit/${sha}`), `/git/tazel/commit/${sha}`); + expect(gitRoute("/")).toBe("/git"); + expect(gitRoute("/tazel")).toBe("/git/tazel"); + expect(gitRoute("/tazel/")).toBe("/git/tazel"); + expect(gitRoute("/tazel/tree")).toBe("/git/tazel/tree"); + expect(gitRoute("/tazel/log")).toBe("/git/tazel/log"); + expect(gitRoute("/tazel/refs")).toBe("/git/tazel/refs"); + expect(gitRoute(`/tazel/commit/${sha}`)).toBe(`/git/tazel/commit/${sha}`); for (const path of [ "/tazel.git", "/.hidden", @@ -111,10 +115,10 @@ test("git.progmasoft.com has its listing and the views of each repository", () = "/tazel/raw", "/tazel/info/refs", ]) { - assert.equal(gitRoute(path), null, path); + expect(gitRoute(path), path).toBe(null); } const english = shape(gitMessages["en-US"]); for (const locale of supportedLocales) { - assert.deepEqual(shape(gitMessages[locale]), english, locale); + expect(shape(gitMessages[locale]), locale).toStrictEqual(english); } }); diff --git a/apps/web/tests/structured-data.test.mjs b/apps/web/tests/structured-data.test.mjs index 061e57d..de50693 100644 --- a/apps/web/tests/structured-data.test.mjs +++ b/apps/web/tests/structured-data.test.mjs @@ -1,8 +1,7 @@ // SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com> // SPDX-License-Identifier: AGPL-3.0-or-later -import assert from "node:assert/strict"; -import test from "node:test"; +import { expect, test } from "vitest"; import { llmsText } from "../lib/llms.ts"; import { supportedLocales } from "../lib/localization.ts"; import { productSlugs, products } from "../lib/products.ts"; @@ -18,80 +17,83 @@ import { const locales = supportedLocales; test("an SPDX expression gives one URL per license it names", () => { - assert.deepEqual(licenseUrls("MIT"), ["https://spdx.org/licenses/MIT.html"]); - assert.deepEqual(licenseUrls("BSL-1.0 AND LGPL-3.0-or-later"), [ + expect(licenseUrls("MIT")).toStrictEqual([ + "https://spdx.org/licenses/MIT.html", + ]); + expect(licenseUrls("BSL-1.0 AND LGPL-3.0-or-later")).toStrictEqual([ "https://spdx.org/licenses/BSL-1.0.html", "https://spdx.org/licenses/LGPL-3.0-or-later.html", ]); - assert.deepEqual(licenseUrls("(MIT OR Apache-2.0)"), [ + expect(licenseUrls("(MIT OR Apache-2.0)")).toStrictEqual([ "https://spdx.org/licenses/MIT.html", "https://spdx.org/licenses/Apache-2.0.html", ]); - assert.deepEqual(licenseUrls("GPL-2.0-only WITH Classpath-exception-2.0"), [ - "https://spdx.org/licenses/GPL-2.0-only.html", - ]); + expect( + licenseUrls("GPL-2.0-only WITH Classpath-exception-2.0"), + ).toStrictEqual(["https://spdx.org/licenses/GPL-2.0-only.html"]); }); test("every project has its data in every language", () => { for (const slug of productSlugs) { for (const locale of locales) { const data = productData(slug, locale); - assert.equal(data["@type"], "SoftwareSourceCode"); - assert.equal(data.name, products[slug].name); - assert.equal(data.codeRepository, products[slug].source); - assert.equal(data.inLanguage, locale); - assert.ok(data.description.length > 20, `${slug} ${locale}`); - assert.ok(data.license, `${slug} has a license`); - assert.equal(data.version, products[slug].latestRelease?.version); + expect(data["@type"]).toBe("SoftwareSourceCode"); + expect(data.name).toBe(products[slug].name); + expect(data.codeRepository).toBe(products[slug].source); + expect(data.inLanguage).toBe(locale); + expect(data.description.length > 20, `${slug} ${locale}`).toBeTruthy(); + expect(data.license, `${slug} has a license`).toBeTruthy(); + expect(data.version).toBe(products[slug].latestRelease?.version); } } }); test("a released project names its version, one in development does not", () => { - assert.equal(productData("catch3", "en-US").creativeWorkStatus, "Released"); - assert.equal(productData("tazel", "en-US").version, "0.2.0"); - assert.equal( - productData("archer", "en-US").creativeWorkStatus, + expect(productData("catch3", "en-US").creativeWorkStatus).toBe("Released"); + expect(productData("tazel", "en-US").version).toBe("0.2.0"); + expect(productData("archer", "en-US").creativeWorkStatus).toBe( "In development", ); - assert.equal(productData("archer", "en-US").version, undefined); + expect(productData("archer", "en-US").version).toBe(undefined); }); test("the catalog lists every project in order", () => { const data = catalogData("en-US"); - assert.equal(data.numberOfItems, productSlugs.length); - assert.deepEqual( - data.itemListElement.map((item) => item.position), + expect(data.numberOfItems).toBe(productSlugs.length); + expect(data.itemListElement.map((item) => item.position)).toStrictEqual( productSlugs.map((_, index) => index + 1), ); }); test("the organization and the site point at each other", () => { - assert.equal( - websiteData("en-US").publisher["@id"], - organizationData()["@id"], - ); - assert.equal(organizationData()["@type"], "Organization"); + expect(websiteData("en-US").publisher["@id"]).toBe(organizationData()["@id"]); + expect(organizationData()["@type"]).toBe("Organization"); }); test("JSON-LD text cannot close its script element", () => { const text = jsonLd({ name: "</script><script>alert(1)</script>" }); - assert.ok(!text.includes("</script>")); - assert.deepEqual(JSON.parse(text), { + expect(!text.includes("</script>")).toBeTruthy(); + expect(JSON.parse(text)).toStrictEqual({ name: "</script><script>alert(1)</script>", }); }); test("llms.txt lists every project with its facts and names no former project", () => { const text = llmsText(); - assert.match(text, /^# Progmasoft\n\n> /); + expect(text).toMatch(/^# Progmasoft\n\n> /); for (const slug of productSlugs) { - assert.ok(text.includes(`(https://product.progmasoft.com/${slug})`), slug); - assert.ok(text.includes(products[slug].license), `${slug} license`); + expect( + text.includes(`(https://product.progmasoft.com/${slug})`), + slug, + ).toBeTruthy(); + expect( + text.includes(products[slug].license), + `${slug} license`, + ).toBeTruthy(); } - assert.ok(text.includes("latest release 0.4.0")); - assert.ok(text.includes("latest release 0.2.0")); + expect(text.includes("latest release 0.4.0")).toBeTruthy(); + expect(text.includes("latest release 0.2.0")).toBeTruthy(); for (const word of [/\bTala\b/, /\bXide\b/, /\bTalac\b/, /\bX#/]) { - assert.ok(!word.test(text), String(word)); + expect(!word.test(text), String(word)).toBeTruthy(); } }); diff --git a/apps/web/tests/theme.test.mjs b/apps/web/tests/theme.test.mjs index 1ba9116..3fbba20 100644 --- a/apps/web/tests/theme.test.mjs +++ b/apps/web/tests/theme.test.mjs @@ -1,35 +1,30 @@ // SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com> // SPDX-License-Identifier: AGPL-3.0-or-later -import assert from "node:assert/strict"; -import { test } from "node:test"; +import { expect, test } from "vitest"; import vm from "node:vm"; import { expireShadowingCookies } from "../lib/shared-cookies.ts"; import { themeBootstrap, themeCookie, themeFromCookies } from "../lib/theme.ts"; test("the theme comes from its cookie and nothing else", () => { - assert.equal(themeFromCookies("progmasoft_theme=dark"), "dark"); - assert.equal(themeFromCookies("a=1; progmasoft_theme=light; b=2"), "light"); - assert.equal(themeFromCookies("progmasoft_theme=blue"), undefined); - assert.equal(themeFromCookies("my_progmasoft_theme=dark"), undefined); - assert.equal(themeFromCookies(""), undefined); + expect(themeFromCookies("progmasoft_theme=dark")).toBe("dark"); + expect(themeFromCookies("a=1; progmasoft_theme=light; b=2")).toBe("light"); + expect(themeFromCookies("progmasoft_theme=blue")).toBe(undefined); + expect(themeFromCookies("my_progmasoft_theme=dark")).toBe(undefined); + expect(themeFromCookies("")).toBe(undefined); }); test("the theme cookie is shared by the Progmasoft hosts and secure over HTTPS", () => { - assert.equal( - themeCookie("dark", "product.progmasoft.com", true), + expect(themeCookie("dark", "product.progmasoft.com", true)).toBe( "progmasoft_theme=dark; Path=/; Max-Age=31536000; SameSite=Lax; Domain=.progmasoft.com; Secure", ); - assert.equal( - themeCookie("light", "progmasoft.com", false), + expect(themeCookie("light", "progmasoft.com", false)).toBe( "progmasoft_theme=light; Path=/; Max-Age=31536000; SameSite=Lax; Domain=.progmasoft.com", ); - assert.equal( - themeCookie("light", "localhost", false), + expect(themeCookie("light", "localhost", false)).toBe( "progmasoft_theme=light; Path=/; Max-Age=31536000; SameSite=Lax", ); - assert.equal( - themeCookie("dark", "notprogmasoft.com", true), + expect(themeCookie("dark", "notprogmasoft.com", true)).toBe( "progmasoft_theme=dark; Path=/; Max-Age=31536000; SameSite=Lax; Secure", ); }); @@ -64,7 +59,7 @@ function boot({ } test("the page starts in the theme of the cookie", () => { - assert.deepEqual(boot({ cookie: "x=1; progmasoft_theme=dark" }), { + expect(boot({ cookie: "x=1; progmasoft_theme=dark" })).toStrictEqual({ theme: "dark", scheme: "dark", written: [], @@ -73,46 +68,43 @@ test("the page starts in the theme of the cookie", () => { test("a choice of an earlier version moves from localStorage into the shared cookie", () => { const result = boot({ stored: "dark" }); - assert.equal(result.theme, "dark"); - assert.deepEqual(result.written, [ + expect(result.theme).toBe("dark"); + expect(result.written).toStrictEqual([ themeCookie("dark", "account.progmasoft.com", true), ]); - assert.deepEqual( + expect( boot({ stored: "light", host: "localhost", protocol: "http:" }).written, - [themeCookie("light", "localhost", false)], - ); + ).toStrictEqual([themeCookie("light", "localhost", false)]); }); test("the cookie wins over localStorage, and light is the default", () => { - assert.equal( - boot({ cookie: "progmasoft_theme=light", stored: "dark" }).theme, + expect(boot({ cookie: "progmasoft_theme=light", stored: "dark" }).theme).toBe( "light", ); - assert.equal(boot({}).theme, "light"); - assert.equal(boot({ stored: "blue" }).theme, "light"); + expect(boot({}).theme).toBe("light"); + expect(boot({ stored: "blue" }).theme).toBe("light"); }); test("a host cookie that shadows a shared one is expired", () => { - assert.deepEqual( + expect( expireShadowingCookies( "progmasoft_locale=en-US; progmasoft_locale=de-DE", true, ), - ["progmasoft_locale=; Path=/; Max-Age=0; SameSite=Lax; Secure"], - ); - assert.deepEqual( + ).toStrictEqual([ + "progmasoft_locale=; Path=/; Max-Age=0; SameSite=Lax; Secure", + ]); + expect( expireShadowingCookies( "progmasoft_theme=light; a=1; progmasoft_theme=dark", false, ), - ["progmasoft_theme=; Path=/; Max-Age=0; SameSite=Lax"], - ); - assert.deepEqual( + ).toStrictEqual(["progmasoft_theme=; Path=/; Max-Age=0; SameSite=Lax"]); + expect( expireShadowingCookies( "progmasoft_locale=de-DE; progmasoft_theme=dark", true, ), - [], - ); - assert.deepEqual(expireShadowingCookies("", true), []); + ).toStrictEqual([]); + expect(expireShadowingCookies("", true)).toStrictEqual([]); }); diff --git a/apps/web/vitest.config.mts b/apps/web/vitest.config.mts new file mode 100644 index 0000000..6e0c125 --- /dev/null +++ b/apps/web/vitest.config.mts @@ -0,0 +1,25 @@ +// SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com> +// SPDX-License-Identifier: AGPL-3.0-or-later + +import { fileURLToPath } from "node:url"; +import { defineConfig } from "vitest/config"; + +/** + * The unit tests of the site: tests/*.test.mjs, run in Node. The layout + * tests in e2e/ belong to Playwright and are not collected here. + */ +export default defineConfig({ + resolve: { + alias: { "@": fileURLToPath(new URL(".", import.meta.url)) }, + }, + test: { + include: ["tests/**/*.test.mjs"], + environment: "node", + coverage: { + provider: "v8", + include: ["lib/**"], + reporter: ["lcov", "text"], + reportsDirectory: "coverage", + }, + }, +}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3b130af..58f2efc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,9 +38,9 @@ importers: '@types/react-dom': specifier: 19.3.0 version: 19.3.0(@types/react@19.3.0) - c8: - specifier: 12.0.0 - version: 12.0.0 + '@vitest/coverage-v8': + specifier: 5.1.0 + version: 5.1.0(vitest@5.1.0) eslint: specifier: 9.39.5 version: 9.39.5(supports-color@7.2.0) @@ -53,6 +53,9 @@ importers: typescript: specifier: 6.0.3 version: 6.0.3 + vitest: + specifier: 5.1.0 + version: 5.1.0(@types/node@24.19.2)(@vitest/coverage-v8@5.1.0)(vite@8.4.0(@types/node@24.19.2)) packages: @@ -368,10 +371,6 @@ packages: '@isaacs/nonrecursive-glob-match@1.1.0': resolution: {integrity: sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==} - '@istanbuljs/schema@0.1.6': - resolution: {integrity: sha512-+Sg6GCR/wy1oSmQDFq4LQDAhm3ETKnorxN+y5nbLULOR3P0c14f2Wurzj3/xqPXtasLFfHd5iRFQ7AJt4KH2cw==} - engines: {node: '>=8'} - '@jridgewell/gen-mapping@0.3.13': resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} @@ -385,6 +384,9 @@ packages: '@jridgewell/sourcemap-codec@1.5.5': resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + '@jridgewell/trace-mapping@0.3.31': resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} @@ -469,11 +471,118 @@ packages: resolution: {integrity: sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==} engines: {node: '>=12.4.0'} + '@oxc-project/types@0.160.0': + resolution: {integrity: sha512-gw4k9syEmnckbOgw2A2FU1TBDdX9hfwV9jEn/uio65pguPzwWiXQS3OIJDMEhv9m06tj9XiEe6RoD0YA+LgreA==} + '@playwright/test@1.65.0': resolution: {integrity: sha512-iGURLGuKDLakSEl7Pgfv8h7f+XLT+V861Wfhz0zlEl5nyFuKUopdkFBPKqTllTUp06aOwPuH8iuUEb3yp3MpbQ==} engines: {node: '>=20'} hasBin: true + '@rolldown/binding-android-arm-eabi@1.3.4': + resolution: {integrity: sha512-xCW8CkL/ualx/SbYqeG9iK87lJCZGDQ0soE+kaORJ0Bd+pHALyE4qK7BStmEAyYWLEzZ3/biSIpA6/7GDFvzIg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@rolldown/binding-android-arm64@1.3.4': + resolution: {integrity: sha512-5lifIO+b/prcM9sx/bkPN4w6UEToEfQ3gjhx0+0neuL+dkYskI792CfAq03T51jc8JFcaYXs2hi3l8RjiH/VWQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.3.4': + resolution: {integrity: sha512-RCgxTI4AJQxhVF//BI3ImQOsXTHrF4Eg+f99jBy8WoETA2kSEGFxpnrVmW0leQq/2aBR4R5AC6csmy3rc66e3Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.3.4': + resolution: {integrity: sha512-zNPJVVPUaDEj+L0lImoK3rFv2b+Z5gNijI6DWu/fcD3/1TfmRXKb9ZyxbSN+2AhlctqjbNzUvCsMa+EBhnEM4Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.3.4': + resolution: {integrity: sha512-upP6g7ZIRy5by1RDQ/EphHIdJ5xK0eUD7sUgfZFWJ49s4XdbYsIvIlAPtrFpayR70Hhf9J22lb4Pm8/9FhrZmg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.3.4': + resolution: {integrity: sha512-SAX5C5+poMLCxu8dkPF6h5yst40rkzs+9Y3cbPn2OFSydmHjAEprrGi64zGgnYyPIVZfdGUFqJ2fJbfbnHI+mA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.3.4': + resolution: {integrity: sha512-nwHqdlRZS6GWBef3dG5/pMY6RNTBBUjj7s0Da+m6xsFpe7jx6IC46SLZcCu8f46JOfCovZmwnrz51EzGE+7Fyw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-arm64-musl@1.3.4': + resolution: {integrity: sha512-Gr78X2ur/AgLCkmZgHffk/FerIX8S5zb/eII4bCcvJo0ANzeXhTShahdNbpnY6bpiszIAgIfiuKS9ziziWsamw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rolldown/binding-linux-ppc64-gnu@1.3.4': + resolution: {integrity: sha512-o9Wcn8nWrsQasaBRYM4d//FwhlBsTJYWkPVlhlt6FwzpwEoovY4IopRZjk5Fq3+ntRuSDORJjF/nA8sFeF2q6w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-s390x-gnu@1.3.4': + resolution: {integrity: sha512-UDWu4jkVcx2kiBKm3Ec//4lVCbeTWj8gmJ9SyLWCdLWtTlyq7fQVeVV/14nXvRtSLErvJ2+yA/Ux5taS31Y17Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-gnu@1.3.4': + resolution: {integrity: sha512-W9mGtTa0w4fWh8RLMNPyaEhhcuqUfO07Q4I1bBc4PDMNg7gQSw0yPQNQ3D0qwbkXwxbyL4YrIzc8n6k1vuFExQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-musl@1.3.4': + resolution: {integrity: sha512-8B+ofyQZ7/aCmkqnyMonPr5zKLqMVNczhRGFNtdIuItiwNn8iQWJawMq2E58r7bxD1XEbtRRsULY/eCWwZQ01Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rolldown/binding-openharmony-arm64@1.3.4': + resolution: {integrity: sha512-TlD0FSZaC7o2B4NCe9V5N11ugTnhzTM9ksj4sgRLvrKosDzjEkvlsTX3ehkw4ZlPv8AADimZZTvJGEa16pfXug==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-wasm32-wasi@1.3.4': + resolution: {integrity: sha512-jwO8P3o53ygo7b5061B7BeaJ1BGv3BKZ6jroFdw/01qWry7Z+qNBlDvulzbTle5s/A0Fc1FRgsTxrke9DvsSbA==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + cpu: [wasm32] + + '@rolldown/binding-win32-arm64-msvc@1.3.4': + resolution: {integrity: sha512-8adGMrNtrdzi2WD1ozhYapER59gD8Q/DV6SCKJlyG2HqULPdeQUBvMa33lTsiEYwIqTZUaIU2MmvPp5f1wbtXA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.3.4': + resolution: {integrity: sha512-rIMjtESdXJCIoOiUTroQ1Y1rjVDZkuUVRUxs3APX2vNv175D7TDWvzdELiIhzGq9cUNUFat+co+PTmPHPqSREg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.1.1': + resolution: {integrity: sha512-glFIJDvLNDtJhT9qrMFWLPbvS+skxgt4L0K8Ei2YtnhPysAJnsI7nyxSJxKj4ADeKX0OLjC4ntRkwpLOoS3rwA==} + '@rtsao/scc@1.1.0': resolution: {integrity: sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==} @@ -483,12 +592,15 @@ packages: '@tybys/wasm-util@0.10.3': resolution: {integrity: sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg==} + '@types/chai@5.2.3': + resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} + + '@types/deep-eql@4.0.2': + resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} + '@types/estree@1.0.9': resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} - '@types/istanbul-lib-coverage@2.0.6': - resolution: {integrity: sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==} - '@types/json-schema@7.0.15': resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} @@ -685,6 +797,37 @@ packages: cpu: [x64] os: [win32] + '@vitest/coverage-v8@5.1.0': + resolution: {integrity: sha512-OY9aShBQG5KOIw2zCo9fDoCHI9RHliNHJ//nM7m6jGg41Hyke9JOGWmeMlK74xYErsxMoK8mIB3gAeEyFVA7LA==} + peerDependencies: + '@vitest/browser': 5.1.0 + vitest: 5.1.0 + peerDependenciesMeta: + '@vitest/browser': + optional: true + + '@vitest/istanbul-lib-coverage@2.1.1': + resolution: {integrity: sha512-pF9nMHHuyQzyEXdkWX3d4wElEKjymfL5TEoofegJn/jK2WjmTLOcJKfJ7/YwYGYdbZf8Ebrt4VDUoBPiTuO9zg==} + engines: {node: '>=22'} + + '@vitest/istanbul-lib-report@2.1.1': + resolution: {integrity: sha512-Qba+8OpQQAbWrmq3u1olh6jqE/vyW4OYJe6TLrrTBpXhjJhbY7Os69wyVvMQmNA64KJhGd5nQ/c7l4io8tPCHQ==} + engines: {node: '>=22'} + + '@vitest/mocker@5.1.0': + resolution: {integrity: sha512-5umB9/jlWcqVS6fsrFmv5Gdnpu6wAUio/lEOwAmvB7v+lFo/IW2B9FhAD0p19GCULTgMzLCdUmuCDCnAzWgppQ==} + 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 + + '@vitest/spy@5.1.0': + resolution: {integrity: sha512-2DPO5OMHWKrBngC+fCmTQqemNF0gidRhp3lxbBmRhW+M1XJrfgPpqNqWVevXtn2f2ufD5ZaR1B6B641aAlcX5A==} + acorn-jsx@5.3.2: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: @@ -698,18 +841,10 @@ packages: ajv@6.15.0: resolution: {integrity: sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==} - ansi-regex@6.3.0: - resolution: {integrity: sha512-WpDfL7NO6j7tH88IDBNVdUJxDh9nmCteAVW9dsep846XdwF4naCBK+/tGLX3KJgcpgMRXCFlTM2hKGoK9FsdrQ==} - engines: {node: '>=12'} - ansi-styles@4.3.0: resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} engines: {node: '>=8'} - ansi-styles@6.2.3: - resolution: {integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==} - engines: {node: '>=12'} - argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} @@ -749,9 +884,16 @@ packages: resolution: {integrity: sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==} engines: {node: '>= 0.4'} + assertion-error@2.0.1: + resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} + engines: {node: '>=12'} + ast-types-flow@0.0.8: resolution: {integrity: sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==} + ast-v8-to-istanbul@1.0.8: + resolution: {integrity: sha512-lPdpagk13ANXV+HClJEpCZM7kUsl5XcvgqKzZhaj6Ve1ZFICcY2sGhAN1n1vT0tML6EclT7bfVgTxqL57Gkpow==} + async-function@1.0.0: resolution: {integrity: sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==} engines: {node: '>= 0.4'} @@ -796,16 +938,6 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true - c8@12.0.0: - resolution: {integrity: sha512-4zpJvrd1nKWutnnKC2pXkFmb6iM1l+ffN//o1CzlTNwW7GSOs9a1xrLqkC48nU8oEkjmPZLPiwMsIaOvoF4Pqg==} - engines: {node: ^20.19.0 || ^22.12.0 || >=23} - hasBin: true - peerDependencies: - monocart-coverage-reports: ^2 - peerDependenciesMeta: - monocart-coverage-reports: - optional: true - call-bind-apply-helpers@1.0.2: resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==} engines: {node: '>= 0.4'} @@ -825,6 +957,10 @@ packages: caniuse-lite@1.0.30001810: resolution: {integrity: sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==} + chai@6.3.0: + resolution: {integrity: sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==} + engines: {node: '>=18'} + chalk@4.1.2: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} engines: {node: '>=10'} @@ -832,10 +968,6 @@ packages: client-only@0.0.1: resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==} - cliui@9.0.1: - resolution: {integrity: sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==} - engines: {node: '>=20'} - color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} @@ -914,9 +1046,6 @@ packages: electron-to-chromium@1.5.415: resolution: {integrity: sha512-958V+Kbhtgz+SxXeEVKBjrlKRBIDAYvUJfwhjxMZ5S6ut9jAl7l9ZKBkBrvjyjZE36PabLUo2L8kEeV5O4vgJg==} - emoji-regex@10.6.0: - resolution: {integrity: sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==} - emoji-regex@9.2.2: resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} @@ -940,6 +1069,9 @@ packages: resolution: {integrity: sha512-c/A0P0oxkACDc+cKWw8evLXK83oBKgn0qPOqCYT4x9uolpCIJAcYvJC9QYKNDRPsTeGyCrQ326jrvgZWdCdK5Q==} engines: {node: '>= 0.4'} + es-module-lexer@2.3.2: + resolution: {integrity: sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==} + es-object-atoms@1.1.2: resolution: {integrity: sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==} engines: {node: '>= 0.4'} @@ -1081,10 +1213,17 @@ packages: resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} engines: {node: '>=4.0'} + estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + esutils@2.0.3: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} engines: {node: '>=0.10.0'} + expect-type@1.4.0: + resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==} + engines: {node: '>=12.0.0'} + fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} @@ -1133,9 +1272,10 @@ packages: resolution: {integrity: sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==} engines: {node: '>= 0.4'} - foreground-child@3.3.1: - resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==} - engines: {node: '>=14'} + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] function-bind@1.1.2: resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} @@ -1155,14 +1295,6 @@ packages: resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} engines: {node: '>=6.9.0'} - get-caller-file@2.0.5: - resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} - engines: {node: 6.* || 8.* || >= 10.*} - - get-east-asian-width@1.7.0: - resolution: {integrity: sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==} - engines: {node: '>=18'} - get-intrinsic@1.3.0: resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==} engines: {node: '>= 0.4'} @@ -1186,10 +1318,6 @@ packages: resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} engines: {node: '>=10.13.0'} - glob@14.0.4: - resolution: {integrity: sha512-mMiwNKoJZ4HAIRVJxotO6LsNRReA30gQwP9E2/p94tfLv+jygCNpKDjhhSL6OLY6LE371EZm5EAf7RpYuUqlsw==} - engines: {node: 18 || 20 || >=22} - globals@14.0.0: resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} engines: {node: '>=18'} @@ -1239,9 +1367,6 @@ packages: hermes-parser@0.25.1: resolution: {integrity: sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==} - html-escaper@2.0.2: - resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} - ignore@5.3.2: resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} engines: {node: '>= 4'} @@ -1375,22 +1500,13 @@ packages: isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} - istanbul-lib-coverage@3.2.2: - resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==} - engines: {node: '>=8'} - - istanbul-lib-report@3.0.1: - resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==} - engines: {node: '>=10'} - - istanbul-reports@3.2.0: - resolution: {integrity: sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==} - engines: {node: '>=8'} - iterator.prototype@1.1.5: resolution: {integrity: sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==} engines: {node: '>= 0.4'} + js-tokens@10.0.2: + resolution: {integrity: sha512-DXL98F5NsFBwDz7kcb4UUlrg9ePDgBCPjK4inUYi5gahxsTrKNW8Oh6F3WAuh7hntbP41EL/DkUYccRsDfLQLQ==} + js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -1439,6 +1555,80 @@ packages: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} + lightningcss-android-arm64@1.33.0: + resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [android] + + lightningcss-darwin-arm64@1.33.0: + resolution: {integrity: sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [darwin] + + lightningcss-darwin-x64@1.33.0: + resolution: {integrity: sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [darwin] + + lightningcss-freebsd-x64@1.33.0: + resolution: {integrity: sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [freebsd] + + lightningcss-linux-arm-gnueabihf@1.33.0: + resolution: {integrity: sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm] + os: [linux] + + lightningcss-linux-arm64-gnu@1.33.0: + resolution: {integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + lightningcss-linux-arm64-musl@1.33.0: + resolution: {integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [musl] + + lightningcss-linux-x64-gnu@1.33.0: + resolution: {integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [glibc] + + lightningcss-linux-x64-musl@1.33.0: + resolution: {integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [musl] + + lightningcss-win32-arm64-msvc@1.33.0: + resolution: {integrity: sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [win32] + + lightningcss-win32-x64-msvc@1.33.0: + resolution: {integrity: sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [win32] + + lightningcss@1.33.0: + resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==} + engines: {node: '>= 12.0.0'} + locate-path@6.0.0: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} engines: {node: '>=10'} @@ -1450,16 +1640,14 @@ packages: resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} hasBin: true - lru-cache@11.5.3: - resolution: {integrity: sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==} - engines: {node: 20 || >=22} - lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} - make-dir@4.0.0: - resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==} - engines: {node: '>=10'} + magic-string@1.4.5: + resolution: {integrity: sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==} + + magicast@0.5.5: + resolution: {integrity: sha512-UicdXN8zQ3JHlxVq+28afMXPr1z7WNY6+7EJnzTdQWkTAlMLF5fNCCKxJHBQwGaNGR11581EiQmQzx73+MvszA==} math-intrinsics@1.1.0: resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} @@ -1483,10 +1671,6 @@ packages: minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} - minipass@7.1.3: - resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} - engines: {node: '>=16 || 14 >=14.17'} - ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} @@ -1495,11 +1679,22 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true + nanoid@3.3.20: + resolution: {integrity: sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + napi-postinstall@0.3.4: resolution: {integrity: sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==} engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} hasBin: true + napi-windows-process-start-time@0.1.0: + resolution: {integrity: sha512-zHxhzKsIFu3elch3eFw69WEUGc79DFhbc3nD/WEOzWL/pFFLZRW13EHnuO0c+0YjncE5uCaS9ICHxOBXkb6vPw==} + engines: {node: '>=20'} + cpu: [x64, arm64] + os: [win32] + natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} @@ -1564,6 +1759,10 @@ packages: resolution: {integrity: sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==} engines: {node: '>= 0.4'} + obug@3.0.0: + resolution: {integrity: sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==} + engines: {node: '>=12.20.0'} + optionator@0.9.4: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} engines: {node: '>= 0.8.0'} @@ -1595,10 +1794,6 @@ packages: path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} - path-scurry@3.0.0: - resolution: {integrity: sha512-1pTbQqH1wIwMi/eleQ5leFTTCkzFsPcgXNjwOA8YGGW/W4/kHT3dssE7Z6NH+zuqNLOzOB0uaD61yl7cAcVhgg==} - engines: {node: 18 || 20 || >=22} - picocolors@1.1.1: resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} @@ -1628,6 +1823,10 @@ packages: resolution: {integrity: sha512-g50586zr4bZmwFiTlflMu8E0bDTb5I5gertgwAKmsdUlTQIhZtunzUlD1WSzwcVWPoAVpsrA6vlfCD7oXvRwgg==} engines: {node: ^10 || ^12 || >=14} + postcss@8.5.33: + resolution: {integrity: sha512-RVHEU9/Pp1Fnjr/MpAJsZoADukCKhfIi15OunEYiGktIkYLkPVvC1sioWolGDS7XByMTx9m/IGbro0Js13zhnQ==} + engines: {node: ^10 || ^12 || >=14} + prelude-ls@1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} @@ -1683,6 +1882,11 @@ packages: resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==} engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + rolldown@1.3.4: + resolution: {integrity: sha512-p2rq4bfBmF0M6yaR8+A89fbkBQynZI2fxUW4G07eq9kpctAkpo7q5BZ4X4Mo4XZ7HHROu33cX9PeopUFN6u+2Q==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + run-parallel@1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} @@ -1755,10 +1959,6 @@ packages: resolution: {integrity: sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==} engines: {node: '>= 0.4'} - signal-exit@4.1.0: - resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} - engines: {node: '>=14'} - source-map-js@1.2.2: resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==} engines: {node: '>=0.10.0'} @@ -1766,18 +1966,13 @@ packages: stable-hash@0.0.5: resolution: {integrity: sha512-+L3ccpzibovGXFK+Ap/f8LOS0ahMrHTf3xu7mMLSpEGU0EO9ucaysSylKo9eRDFNhWve/y275iPmIZ4z39a9iA==} + std-env@4.3.0: + resolution: {integrity: sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==} + stop-iteration-iterator@1.1.0: resolution: {integrity: sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==} engines: {node: '>= 0.4'} - string-width@7.2.0: - resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==} - engines: {node: '>=18'} - - string-width@8.3.0: - resolution: {integrity: sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==} - engines: {node: '>=20'} - string.prototype.includes@2.0.1: resolution: {integrity: sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==} engines: {node: '>= 0.4'} @@ -1801,10 +1996,6 @@ packages: resolution: {integrity: sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==} engines: {node: '>= 0.4'} - strip-ansi@7.2.0: - resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} - engines: {node: '>=12'} - strip-bom@3.0.0: resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} engines: {node: '>=4'} @@ -1834,14 +2025,22 @@ packages: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} - test-exclude@8.0.0: - resolution: {integrity: sha512-ZOffsNrXYggvU1mDGHk54I96r26P8SyMjO5slMKSc7+IWmtB/MQKnEC2fP51imB3/pT6YK5cT5E8f+Dd9KdyOQ==} - engines: {node: 20 || >=22} + tinybench@6.2.5: + resolution: {integrity: sha512-b/8GRMdnY4cqkfCLyaFpTGIv1qwfi3oT0mWaepwT++6Z/ZrYehNfZZ2JDKVLKGhNoEkS3IIB1ELtCT0XS5DtOA==} + engines: {node: '>=20.0.0'} + + tinyexec@1.4.0: + resolution: {integrity: sha512-PV6lIcJQh57aFeJDwx16JNHmgFRh5xguzallrDW1qe8nAghYgr5MKz2K5k7wEyV/ygZhdnIAP8+HZSarHPBCsg==} + engines: {node: '>=18'} tinyglobby@0.2.17: resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} engines: {node: '>=12.0.0'} + tinyrainbow@3.2.0: + resolution: {integrity: sha512-LgO3D9yZJjApUiuUfl9iFAwrtaX4+lok3wJIqttGoKCHlWUqHqbQpnxCf82L8FjgKsh4iGo78hqJwgL8F6To2A==} + engines: {node: '>=14.0.0'} + to-regex-range@5.0.1: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} @@ -1909,9 +2108,89 @@ packages: uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} - v8-to-istanbul@9.3.0: - resolution: {integrity: sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==} - engines: {node: '>=10.12.0'} + vite@8.4.0: + resolution: {integrity: sha512-X2nUJg+9cutlz3hzqyO6p+WTwk9H257DjwAEf9EQYUFrQbDItmetadi9gYmb+l7VDy4r3VXLUnmLTwuPmzejDw==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + 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 + + vitest@5.1.0: + resolution: {integrity: sha512-MzmNFnrwa8v8lF1bLxw3UJ4EREwVOVb75VqJZmUDRjJ6EluK/x9th7qTbaeDk41WxE1GxWqmTXcdsfobfH5sOA==} + engines: {node: ^22.12.0 || ^24.0.0 || >=26.0.0} + hasBin: true + 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 which-boxed-primitive@1.1.1: resolution: {integrity: sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==} @@ -1934,33 +2213,18 @@ packages: engines: {node: '>= 8'} hasBin: true + why-is-node-running@3.2.1: + resolution: {integrity: sha512-Tb2FUhB4vUsGQlfSquQLYkApkuPAFQXGFzxWKHHumVz2dK+X1RUm/HnID4+TfIGYJ1kTcwOaCk/buYCEJr6YjQ==} + engines: {node: '>=20.11'} + hasBin: true + word-wrap@1.2.5: resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} engines: {node: '>=0.10.0'} - wrap-ansi@9.0.2: - resolution: {integrity: sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==} - engines: {node: '>=18'} - - y18n@5.0.8: - resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} - engines: {node: '>=10'} - yallist@3.1.1: resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} - yargs-parser@21.1.1: - resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} - engines: {node: '>=12'} - - yargs-parser@22.0.0: - resolution: {integrity: sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==} - engines: {node: ^20.19.0 || ^22.12.0 || >=23} - - yargs@18.2.0: - resolution: {integrity: sha512-9OpKOLeaoNFecEp7P6iYbzze/5CqWoH7N3SMs/6y1XF4nMvFMspEGZzJ6uFi9MmQwXhyzqYoSEKO3tvA3Z/o2w==} - engines: {node: ^20.19.0 || ^22.12.0 || >=23} - yocto-queue@0.1.0: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} @@ -2275,8 +2539,6 @@ snapshots: '@isaacs/nonrecursive-glob-match@1.1.0': {} - '@istanbuljs/schema@0.1.6': {} - '@jridgewell/gen-mapping@0.3.13': dependencies: '@jridgewell/sourcemap-codec': 1.5.5 @@ -2291,6 +2553,8 @@ snapshots: '@jridgewell/sourcemap-codec@1.5.5': {} + '@jridgewell/sourcemap-codec@1.6.0': {} + '@jridgewell/trace-mapping@0.3.31': dependencies: '@jridgewell/resolve-uri': 3.1.2 @@ -2350,10 +2614,64 @@ snapshots: '@nolyfill/is-core-module@1.0.39': {} + '@oxc-project/types@0.160.0': {} + '@playwright/test@1.65.0': dependencies: playwright: 1.65.0 + '@rolldown/binding-android-arm-eabi@1.3.4': + optional: true + + '@rolldown/binding-android-arm64@1.3.4': + optional: true + + '@rolldown/binding-darwin-arm64@1.3.4': + optional: true + + '@rolldown/binding-darwin-x64@1.3.4': + optional: true + + '@rolldown/binding-freebsd-x64@1.3.4': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.3.4': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.3.4': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.3.4': + optional: true + + '@rolldown/binding-linux-ppc64-gnu@1.3.4': + optional: true + + '@rolldown/binding-linux-s390x-gnu@1.3.4': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.3.4': + optional: true + + '@rolldown/binding-linux-x64-musl@1.3.4': + optional: true + + '@rolldown/binding-openharmony-arm64@1.3.4': + optional: true + + '@rolldown/binding-wasm32-wasi@1.3.4': + dependencies: + '@oxc-project/types': 0.160.0 + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.3.4': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.3.4': + optional: true + + '@rolldown/pluginutils@1.1.1': {} + '@rtsao/scc@1.1.0': {} '@swc/helpers@0.5.23': @@ -2365,9 +2683,14 @@ snapshots: tslib: 2.8.1 optional: true - '@types/estree@1.0.9': {} + '@types/chai@5.2.3': + dependencies: + '@types/deep-eql': 4.0.2 + assertion-error: 2.0.1 - '@types/istanbul-lib-coverage@2.0.6': {} + '@types/deep-eql@4.0.2': {} + + '@types/estree@1.0.9': {} '@types/json-schema@7.0.15': {} @@ -2546,6 +2869,35 @@ snapshots: '@unrs/resolver-binding-win32-x64-msvc@1.12.2': optional: true + '@vitest/coverage-v8@5.1.0(vitest@5.1.0)': + dependencies: + '@bcoe/v8-coverage': 1.0.2 + '@vitest/istanbul-lib-coverage': 2.1.1 + '@vitest/istanbul-lib-report': 2.1.1 + ast-v8-to-istanbul: 1.0.8 + magicast: 0.5.5 + obug: 3.0.0 + std-env: 4.3.0 + tinyrainbow: 3.2.0 + vitest: 5.1.0(@types/node@24.19.2)(@vitest/coverage-v8@5.1.0)(vite@8.4.0(@types/node@24.19.2)) + + '@vitest/istanbul-lib-coverage@2.1.1': {} + + '@vitest/istanbul-lib-report@2.1.1': + dependencies: + '@vitest/istanbul-lib-coverage': 2.1.1 + + '@vitest/mocker@5.1.0(vite@8.4.0(@types/node@24.19.2))': + dependencies: + '@jridgewell/trace-mapping': 0.3.31 + '@vitest/spy': 5.1.0 + estree-walker: 3.0.3 + magic-string: 1.4.5 + optionalDependencies: + vite: 8.4.0(@types/node@24.19.2) + + '@vitest/spy@5.1.0': {} + acorn-jsx@5.3.2(acorn@8.18.0): dependencies: acorn: 8.18.0 @@ -2559,14 +2911,10 @@ snapshots: json-schema-traverse: 0.4.1 uri-js: 4.4.1 - ansi-regex@6.3.0: {} - ansi-styles@4.3.0: dependencies: color-convert: 2.0.1 - ansi-styles@6.2.3: {} - argparse@2.0.1: {} aria-query@5.3.2: {} @@ -2638,8 +2986,16 @@ snapshots: get-intrinsic: 1.3.0 is-array-buffer: 3.0.5 + assertion-error@2.0.1: {} + ast-types-flow@0.0.8: {} + ast-v8-to-istanbul@1.0.8: + dependencies: + '@jridgewell/trace-mapping': 0.3.31 + estree-walker: 3.0.3 + js-tokens: 10.0.2 + async-function@1.0.0: {} available-typed-arrays@1.0.7: @@ -2677,20 +3033,6 @@ snapshots: node-releases: 2.0.54 update-browserslist-db: 1.3.1(browserslist@4.28.8) - c8@12.0.0: - dependencies: - '@bcoe/v8-coverage': 1.0.2 - '@istanbuljs/schema': 0.1.6 - find-up: 5.0.0 - foreground-child: 3.3.1 - istanbul-lib-coverage: 3.2.2 - istanbul-lib-report: 3.0.1 - istanbul-reports: 3.2.0 - test-exclude: 8.0.0 - v8-to-istanbul: 9.3.0 - yargs: 18.2.0 - yargs-parser: 21.1.1 - call-bind-apply-helpers@1.0.2: dependencies: es-errors: 1.3.0 @@ -2712,6 +3054,8 @@ snapshots: caniuse-lite@1.0.30001810: {} + chai@6.3.0: {} + chalk@4.1.2: dependencies: ansi-styles: 4.3.0 @@ -2719,12 +3063,6 @@ snapshots: client-only@0.0.1: {} - cliui@9.0.1: - dependencies: - string-width: 7.2.0 - strip-ansi: 7.2.0 - wrap-ansi: 9.0.2 - color-convert@2.0.1: dependencies: color-name: 1.1.4 @@ -2789,8 +3127,7 @@ snapshots: has-property-descriptors: 1.0.2 object-keys: 1.1.1 - detect-libc@2.1.2: - optional: true + detect-libc@2.1.2: {} doctrine@2.1.0: dependencies: @@ -2804,8 +3141,6 @@ snapshots: electron-to-chromium@1.5.415: {} - emoji-regex@10.6.0: {} - emoji-regex@9.2.2: {} es-abstract-get@1.0.0: @@ -2895,6 +3230,8 @@ snapshots: iterator.prototype: 1.1.5 math-intrinsics: 1.1.0 + es-module-lexer@2.3.2: {} + es-object-atoms@1.1.2: dependencies: es-errors: 1.3.0 @@ -3124,8 +3461,14 @@ snapshots: estraverse@5.3.0: {} + estree-walker@3.0.3: + dependencies: + '@types/estree': 1.0.9 + esutils@2.0.3: {} + expect-type@1.4.0: {} + fast-deep-equal@3.1.3: {} fast-glob@3.3.1: @@ -3172,10 +3515,8 @@ snapshots: dependencies: is-callable: 1.2.7 - foreground-child@3.3.1: - dependencies: - cross-spawn: 7.0.6 - signal-exit: 4.1.0 + fsevents@2.3.3: + optional: true function-bind@1.1.2: {} @@ -3197,10 +3538,6 @@ snapshots: gensync@1.0.0-beta.2: {} - get-caller-file@2.0.5: {} - - get-east-asian-width@1.7.0: {} - get-intrinsic@1.3.0: dependencies: call-bind-apply-helpers: 1.0.2 @@ -3237,12 +3574,6 @@ snapshots: dependencies: is-glob: 4.0.3 - glob@14.0.4: - dependencies: - minimatch: 11.0.5 - minipass: 7.1.3 - path-scurry: 3.0.0 - globals@14.0.0: {} globals@16.4.0: {} @@ -3282,8 +3613,6 @@ snapshots: dependencies: hermes-estree: 0.25.1 - html-escaper@2.0.2: {} - ignore@5.3.2: {} ignore@7.0.6: {} @@ -3421,19 +3750,6 @@ snapshots: isexe@2.0.0: {} - istanbul-lib-coverage@3.2.2: {} - - istanbul-lib-report@3.0.1: - dependencies: - istanbul-lib-coverage: 3.2.2 - make-dir: 4.0.0 - supports-color: 7.2.0 - - istanbul-reports@3.2.0: - dependencies: - html-escaper: 2.0.2 - istanbul-lib-report: 3.0.1 - iterator.prototype@1.1.5: dependencies: define-data-property: 1.1.4 @@ -3443,6 +3759,8 @@ snapshots: has-symbols: 1.1.0 set-function-name: 2.0.2 + js-tokens@10.0.2: {} + js-tokens@4.0.0: {} js-yaml@4.3.2: @@ -3485,6 +3803,55 @@ snapshots: prelude-ls: 1.2.1 type-check: 0.4.0 + lightningcss-android-arm64@1.33.0: + optional: true + + lightningcss-darwin-arm64@1.33.0: + optional: true + + lightningcss-darwin-x64@1.33.0: + optional: true + + lightningcss-freebsd-x64@1.33.0: + optional: true + + lightningcss-linux-arm-gnueabihf@1.33.0: + optional: true + + lightningcss-linux-arm64-gnu@1.33.0: + optional: true + + lightningcss-linux-arm64-musl@1.33.0: + optional: true + + lightningcss-linux-x64-gnu@1.33.0: + optional: true + + lightningcss-linux-x64-musl@1.33.0: + optional: true + + lightningcss-win32-arm64-msvc@1.33.0: + optional: true + + lightningcss-win32-x64-msvc@1.33.0: + optional: true + + lightningcss@1.33.0: + dependencies: + detect-libc: 2.1.2 + 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 + locate-path@6.0.0: dependencies: p-locate: 5.0.0 @@ -3495,15 +3862,19 @@ snapshots: dependencies: js-tokens: 4.0.0 - lru-cache@11.5.3: {} - lru-cache@5.1.1: dependencies: yallist: 3.1.1 - make-dir@4.0.0: + magic-string@1.4.5: dependencies: - semver: 7.8.5 + '@jridgewell/sourcemap-codec': 1.6.0 + + magicast@0.5.5: + dependencies: + '@babel/parser': 7.29.8 + '@babel/types': 7.29.8 + source-map-js: 1.2.2 math-intrinsics@1.1.0: {} @@ -3525,14 +3896,17 @@ snapshots: minimist@1.2.8: {} - minipass@7.1.3: {} - ms@2.1.3: {} nanoid@3.3.18: {} + nanoid@3.3.20: {} + napi-postinstall@0.3.4: {} + napi-windows-process-start-time@0.1.0: + optional: true + natural-compare@1.4.0: {} next@16.4.5(@babel/core@7.29.7(supports-color@7.2.0))(@playwright/test@1.65.0)(@types/node@24.19.2)(react-dom@19.3.1(react@19.3.1))(react@19.3.1): @@ -3612,6 +3986,8 @@ snapshots: define-properties: 1.2.1 es-object-atoms: 1.1.2 + obug@3.0.0: {} + optionator@0.9.4: dependencies: deep-is: 0.1.4 @@ -3646,11 +4022,6 @@ snapshots: path-parse@1.0.7: {} - path-scurry@3.0.0: - dependencies: - lru-cache: 11.5.3 - minipass: 7.1.3 - picocolors@1.1.1: {} picomatch@2.3.2: {} @@ -3671,6 +4042,12 @@ snapshots: picocolors: 1.1.1 source-map-js: 1.2.2 + postcss@8.5.33: + dependencies: + nanoid: 3.3.20 + picocolors: 1.1.1 + source-map-js: 1.2.2 + prelude-ls@1.2.1: {} prettier@3.9.10: {} @@ -3729,6 +4106,28 @@ snapshots: reusify@1.1.0: {} + rolldown@1.3.4: + dependencies: + '@oxc-project/types': 0.160.0 + '@rolldown/pluginutils': 1.1.1 + optionalDependencies: + '@rolldown/binding-android-arm-eabi': 1.3.4 + '@rolldown/binding-android-arm64': 1.3.4 + '@rolldown/binding-darwin-arm64': 1.3.4 + '@rolldown/binding-darwin-x64': 1.3.4 + '@rolldown/binding-freebsd-x64': 1.3.4 + '@rolldown/binding-linux-arm-gnueabihf': 1.3.4 + '@rolldown/binding-linux-arm64-gnu': 1.3.4 + '@rolldown/binding-linux-arm64-musl': 1.3.4 + '@rolldown/binding-linux-ppc64-gnu': 1.3.4 + '@rolldown/binding-linux-s390x-gnu': 1.3.4 + '@rolldown/binding-linux-x64-gnu': 1.3.4 + '@rolldown/binding-linux-x64-musl': 1.3.4 + '@rolldown/binding-openharmony-arm64': 1.3.4 + '@rolldown/binding-wasm32-wasi': 1.3.4 + '@rolldown/binding-win32-arm64-msvc': 1.3.4 + '@rolldown/binding-win32-x64-msvc': 1.3.4 + run-parallel@1.2.0: dependencies: queue-microtask: 1.2.3 @@ -3848,28 +4247,17 @@ snapshots: side-channel-map: 1.0.1 side-channel-weakmap: 1.0.2 - signal-exit@4.1.0: {} - source-map-js@1.2.2: {} stable-hash@0.0.5: {} + std-env@4.3.0: {} + stop-iteration-iterator@1.1.0: dependencies: es-errors: 1.3.0 internal-slot: 1.1.0 - string-width@7.2.0: - dependencies: - emoji-regex: 10.6.0 - get-east-asian-width: 1.7.0 - strip-ansi: 7.2.0 - - string-width@8.3.0: - dependencies: - get-east-asian-width: 1.7.0 - strip-ansi: 7.2.0 - string.prototype.includes@2.0.1: dependencies: call-bind: 1.0.9 @@ -3921,10 +4309,6 @@ snapshots: define-properties: 1.2.1 es-object-atoms: 1.1.2 - strip-ansi@7.2.0: - dependencies: - ansi-regex: 6.3.0 - strip-bom@3.0.0: {} strip-json-comments@3.1.1: {} @@ -3942,17 +4326,17 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} - test-exclude@8.0.0: - dependencies: - '@istanbuljs/schema': 0.1.6 - glob: 14.0.4 - minimatch: 11.0.5 + tinybench@6.2.5: {} + + tinyexec@1.4.0: {} tinyglobby@0.2.17: dependencies: fdir: 6.5.0(picomatch@4.0.7) picomatch: 4.0.7 + tinyrainbow@3.2.0: {} + to-regex-range@5.0.1: dependencies: is-number: 7.0.0 @@ -4066,11 +4450,39 @@ snapshots: dependencies: punycode: 2.3.1 - v8-to-istanbul@9.3.0: + vite@8.4.0(@types/node@24.19.2): dependencies: - '@jridgewell/trace-mapping': 0.3.31 - '@types/istanbul-lib-coverage': 2.0.6 - convert-source-map: 2.0.0 + lightningcss: 1.33.0 + picomatch: 4.0.7 + postcss: 8.5.33 + rolldown: 1.3.4 + tinyglobby: 0.2.17 + optionalDependencies: + '@types/node': 24.19.2 + fsevents: 2.3.3 + napi-windows-process-start-time: 0.1.0 + + vitest@5.1.0(@types/node@24.19.2)(@vitest/coverage-v8@5.1.0)(vite@8.4.0(@types/node@24.19.2)): + dependencies: + '@types/chai': 5.2.3 + '@vitest/mocker': 5.1.0(vite@8.4.0(@types/node@24.19.2)) + chai: 6.3.0 + es-module-lexer: 2.3.2 + expect-type: 1.4.0 + magic-string: 1.4.5 + obug: 3.0.0 + picomatch: 4.0.7 + std-env: 4.3.0 + tinybench: 6.2.5 + tinyexec: 1.4.0 + tinyglobby: 0.2.17 + vite: 8.4.0(@types/node@24.19.2) + why-is-node-running: 3.2.1 + optionalDependencies: + '@types/node': 24.19.2 + '@vitest/coverage-v8': 5.1.0(vitest@5.1.0) + transitivePeerDependencies: + - msw which-boxed-primitive@1.1.1: dependencies: @@ -4117,31 +4529,12 @@ snapshots: dependencies: isexe: 2.0.0 - word-wrap@1.2.5: {} - - wrap-ansi@9.0.2: - dependencies: - ansi-styles: 6.2.3 - string-width: 7.2.0 - strip-ansi: 7.2.0 + why-is-node-running@3.2.1: {} - y18n@5.0.8: {} + word-wrap@1.2.5: {} yallist@3.1.1: {} - yargs-parser@21.1.1: {} - - yargs-parser@22.0.0: {} - - yargs@18.2.0: - dependencies: - cliui: 9.0.1 - escalade: 3.2.0 - get-caller-file: 2.0.5 - string-width: 8.3.0 - y18n: 5.0.8 - yargs-parser: 22.0.0 - yocto-queue@0.1.0: {} zod-validation-error@4.0.2(zod@4.6.7):