# frontend/tests dir: frontend/tests index: frontend/tests/.pi-map.index.md ## role Test suite validating user state management and UI model transformation functions for the frontend application. ## files - userState.test.mjs | Tests user state utility functions for merging session activity with user data and resolving user selection by various identifiers | dep: node:assert/strict, node:test, ../src/userState.js - users.test.mjs | Tests the buildUserDrawerModel function that transforms user data into a UI drawer model with contact and permission details | dep: node:assert/strict, node:test, ../src/users.js ## arch JavaScript test modules (Mocha/ES modules) following a unit testing pattern that verifies pure data transformation and state resolution logic. ## tags user, tests, data, node:assert, strict, node:test, src, js ## symbols - ## workflows - ## dirty -