feat: update tests + seed script, add ecology→board migration

- useOnboarding.test.js: hasEngagedEcology→hasEngagedBoard, /api/ecology/suggestions→/api/board/suggestions, ecology key/route→board in test assertions
- onboarding-status.test.js: stale description strings updated
- seed-welcome-tester.cjs: communityEcology→board, ecologyPageVisited→boardPageVisited
- migrate-ecology-to-board.cjs: one-time migration renames three member fields and activity log action values
This commit is contained in:
Jennie Robinson Faber 2026-04-14 12:20:46 +01:00
parent 49c54764c6
commit 74b2287d48
4 changed files with 95 additions and 26 deletions

View file

@ -46,7 +46,7 @@ describe('GET /api/onboarding/status', () => {
})
// 1.2: hasProfileTags true when both tag types present
it('hasProfileTags is true when member has both craft tags and ecology topics', async () => {
it('hasProfileTags is true when member has both craft tags and board topics', async () => {
requireAuth.mockResolvedValue({
_id: 'member-1',
craftTags: ['game-design'],
@ -68,7 +68,7 @@ describe('GET /api/onboarding/status', () => {
})
// 1.3: hasProfileTags false when only craft tags
it('hasProfileTags is false when member has craft tags but no ecology topics', async () => {
it('hasProfileTags is false when member has craft tags but no board topics', async () => {
requireAuth.mockResolvedValue({
_id: 'member-1',
craftTags: ['game-design'],