Move app to apps/web-react in pnpm workspace layout

This commit is contained in:
Kalle
2026-08-16 09:20:33 +03:00
parent 7e365ccfcf
commit bbc8ea57af
2913 changed files with 227 additions and 250 deletions

View File

@@ -0,0 +1,20 @@
import { describe, test } from "vitest";
import {
assertDecodesToDefault,
assertRoundTrips,
} from "~/modules/persisted-state/persisted-state-test-utils";
import { recentlyReportedWeaponsPersisted } from "./useRecentlyReportedWeapons";
describe("recentlyReportedWeaponsPersisted", () => {
test("round-trips", () => {
assertRoundTrips(recentlyReportedWeaponsPersisted, [[], [0, 10, 8000]]);
});
test("malformed values decode to the default", () => {
assertDecodesToDefault(recentlyReportedWeaponsPersisted, [
"not json",
"[99999]",
'["0"]',
]);
});
});