backend-development

Coordinate Encore.ts backend integration tests with polling and database validation.

1|Updated Oct 23, 2025
One-click install
npx skills add https://github.com/nirukk52/ScreenGraph --skill backend-development-nirukk52
Or copy as Structured Prompt for Agentโ–ผ
Please help me install this Agent Skill.
Skill: backend-development
Source: https://github.com/nirukk52/ScreenGraph/tree/main/.claude-skills/backend-development_skill
Command: npx skills add https://github.com/nirukk52/ScreenGraph --skill backend-development-nirukk52

SYSTEM DOCUMENTATION & REQUIREMENTS

๐Ÿ’ก This Skill includes references (resource) components.

What problem does it solve?

Integration-first development patterns for Encore.ts backend services, focusing on subscriptions, polling, database validations, and diagnostic tooling.

Core Features & Use Cases

  • Plan the flow, import subscriptions, and execute via Encore client
  • Poll for completion with bounded timeouts and validate DB state
  • Clean up and document findings in Graphiti with playbooks
  • Use diagnostic patterns to prevent regressions in CI

Quick Start

cd backend && encore dev cd backend && encore test cd .cursor && task backend:test Review integration results and document outcomes in Graphiti

Frequently Asked Questions about backend-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up end-to-end integration tests for an Encore.ts backend?โ–ผ

End-to-end integration tests for Encore.ts coordinate subscriptions, polling, and database validation. Import dependencies, execute via the Encore client, poll for async completion with bounded timeouts, assert database state, and clean upโ€”all within a single test flow to verify your backend behaves correctly across layers.

Can I test database state changes after async operations complete?โ–ผ

Yes. After triggering async flows through subscriptions and polling for completion, you can assert database state to verify the operation succeeded. This pattern catches integration bugs where async work doesn't persist correctly or leaves the database in an unexpected state.

What's the best way to poll for async completion in backend tests?โ–ผ

Use bounded timeout polling: execute your async flow, then repeatedly check for completion up to a timeout limit. This prevents tests from hanging indefinitely while confirming that long-running operations finish within acceptable time windows and actually update your database.

How do I prevent regressions in my Encore.ts backend CI pipeline?โ–ผ

Use diagnostic tooling and integration tests in CI to validate subscriptions, polling flows, and database state automatically. Document findings in playbooks so future changes are checked against the same patterns, catching regressions before they reach production.

Does Encore.ts support subscription testing with database validation?โ–ผ

Yes. Encore.ts integration tests support importing subscriptions, executing them, polling for results with timeouts, and validating database state changes. This full-stack approach verifies that subscription handlers process correctly and persist data as expected.

When should I use integration testing instead of unit tests for backend services?โ–ผ

Use integration testing when you need to verify subscriptions, async polling, and database state togetherโ€”not in isolation. Integration tests catch bugs where components work individually but fail when coordinated, which unit tests cannot detect.