Consolidate toolbox loaders and reset helpers
Some checks failed
Deploy Sokko G / deploy (push) Failing after 2s
Some checks failed
Deploy Sokko G / deploy (push) Failing after 2s
This commit is contained in:
parent
6c61e11f9a
commit
865a4ffd97
7 changed files with 61 additions and 75 deletions
|
|
@ -17,6 +17,7 @@ test("vite entrypoint and app shell are wired", async () => {
|
|||
const homeOnboarding = await readFile("website/src/pages/HomeOnboardingSection.jsx", "utf8");
|
||||
const aboutPage = await readFile("website/src/pages/AboutPage.jsx", "utf8");
|
||||
const libraryPage = await readFile("website/src/pages/LibraryPage.jsx", "utf8");
|
||||
const moduleRegistry = await readFile("website/src/features/toolboxes/toolboxModuleRegistry.js", "utf8");
|
||||
const hashRouter = await readFile("website/src/router/hashRouter.js", "utf8");
|
||||
const routeContent = await readFile("website/src/router/RouteContent.jsx", "utf8");
|
||||
const bodyScrollLock = await readFile("website/src/utils/bodyScrollLock.js", "utf8");
|
||||
|
|
@ -83,8 +84,11 @@ test("vite entrypoint and app shell are wired", async () => {
|
|||
assert.match(aboutPage, /about-tool-examples/);
|
||||
assert.match(libraryPage, /export function LibraryPage/);
|
||||
assert.match(libraryPage, /LIBRARY_TOOLBOX_ID/);
|
||||
assert.match(libraryPage, /TaskPlannerModule/);
|
||||
assert.match(libraryPage, /EquipmentPlannerModule/);
|
||||
assert.match(libraryPage, /TOOLBOX_MODULE_LOADERS/);
|
||||
assert.match(libraryPage, /Object\.entries\(TOOLBOX_MODULE_LOADERS\)/);
|
||||
assert.match(moduleRegistry, /export const TOOLBOX_MODULE_LOADERS/);
|
||||
assert.match(moduleRegistry, /taskPlanner: \(\) => import\("\.\/modules\/TaskPlannerModule\.jsx"\)/);
|
||||
assert.match(moduleRegistry, /equipmentPlanner: \(\) => import\("\.\/modules\/EquipmentPlannerModule\.jsx"\)/);
|
||||
assert.match(libraryPage, /normalizeEquipmentPlannerData/);
|
||||
assert.match(libraryPage, /summarizeEquipmentPlannerData/);
|
||||
assert.match(bodyScrollLock, /modalLocks/);
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ test("toolbox storage, cards and pages are wired", async () => {
|
|||
const checklistStorage = await readFile("website/src/features/toolboxes/storage/modules/checklist.js", "utf8");
|
||||
const timerStorage = await readFile("website/src/features/toolboxes/storage/modules/timer.js", "utf8");
|
||||
const calendarStorage = await readFile("website/src/features/toolboxes/storage/modules/calendar.js", "utf8");
|
||||
const resetUtils = await readFile("website/src/features/toolboxes/modules/resetUtils.js", "utf8");
|
||||
const equipmentStorage = await readFile("website/src/features/toolboxes/storage/modules/equipmentPlanner.js", "utf8");
|
||||
const indexedToolboxesHook = await readFile("website/src/features/toolboxes/storage/useIndexedToolboxes.js", "utf8");
|
||||
const optimisticModuleData = await readFile("website/src/features/toolboxes/storage/optimisticModuleData.js", "utf8");
|
||||
|
|
@ -86,6 +87,8 @@ test("toolbox storage, cards and pages are wired", async () => {
|
|||
assert.match(storageCompactorRegistry, /goalTree: compactGoalTreeDataForStorage/);
|
||||
assert.match(timerStorage, /scrollResults/);
|
||||
assert.match(calendarStorage, /normalizeCalendarData/);
|
||||
assert.match(resetUtils, /export function getLatestDailyReset/);
|
||||
assert.match(resetUtils, /export function getLatestWeeklyReset/);
|
||||
assert.match(toolboxStorage, /nextId\("calendar"\)/);
|
||||
assert.match(toolboxCard, /DEFAULT_TOOLBOX_ICON/);
|
||||
assert.match(toolboxCard, /toolbox\.customCover/);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue