Skip to content

Commit 37b1162

Browse files
ascorbicclaude
andauthored
test(bluesky): add comprehensive test suite with 42 passing tests (#89)
- Add integration tests for authorFeedLoader functionality - Test incremental loading, pagination, and error handling - Add schema validation tests for PostSchema and all embed types - Add rich text rendering tests with HTML escaping and link generation - Mock AtpAgent for reliable testing without external dependencies - Configure Vitest for testing environment 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
1 parent ecdf149 commit 37b1162

6 files changed

Lines changed: 1620 additions & 2 deletions

File tree

packages/bluesky/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@
1414
"build": "tsup src/index.ts --format esm --dts --clean",
1515
"dev": "tsup src/index.ts --format esm --dts --watch",
1616
"prepublishOnly": "node --run check && node --run build",
17-
"check": "publint && attw --pack --ignore-rules=cjs-resolves-to-esm"
17+
"check": "publint && attw --pack --ignore-rules=cjs-resolves-to-esm",
18+
"test": "vitest run",
19+
"test:watch": "vitest"
1820
},
1921
"devDependencies": {
2022
"@arethetypeswrong/cli": "^0.17.3",
2123
"astro": "5.10.0",
2224
"publint": "^0.3.2",
2325
"tsup": "^8.3.6",
24-
"typescript": "^5.7.3"
26+
"typescript": "^5.7.3",
27+
"vitest": "^2.1.8"
2528
},
2629
"peerDependencies": {
2730
"astro": "^4.14.0 || ^5.0.0"

0 commit comments

Comments
 (0)