Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions apps/longterm-next/src/data/__tests__/data.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,48 @@ const mockDatabase = {
},
},
stats: {},
typedEntities: [
{
id: "test-entity",
entityType: "risk",
title: "Test Entity",
description: "A test entity",
severity: "high",
tags: ["ai", "safety"],
clusters: [],
relatedEntries: [{ id: "other-entity", type: "concept" }],
sources: [],
customFields: [],
relatedTopics: [],
riskCategory: "accident",
},
{
id: "other-entity",
entityType: "concept",
title: "Other Entity",
description: "Another entity",
tags: [],
clusters: [],
relatedEntries: [],
sources: [],
customFields: [],
relatedTopics: [],
},
{
id: "researcher-1",
entityType: "person",
title: "Dr. Test",
tags: [],
clusters: [],
relatedEntries: [],
sources: [],
customFields: [],
relatedTopics: [],
role: "Researcher",
affiliation: "Test Org",
knownFor: [],
},
],
};

// Mock fs.readFileSync to return our mock database
Expand Down
Loading