Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
**CRITICAL**: All changes to the backend MUST include corresponding test updates to ensure functionality remains intact.
Sign in to like and favorite skills
CRITICAL: All changes to the backend MUST include corresponding test updates to ensure functionality remains intact.
tests/db-init.test.js): Test schema, tables, constraints, indexestests/server.test.js): Test server startup and graceful shutdowntests/routes.test.js): Test all endpoints, authentication, error handling# Start test database npm run test:setup # Initialize test database npm run db:init # Run specific test suites npm run test:db # Database tests npm run test:server # Server tests npm run test:routes # API routes tests # Run all tests npm test # Clean up npm run test:teardown
.env.testWhen adding new features:
db-init.test.js to verify new tables/columns/constraintsroutes.test.js with success/error casesnpm testRemember: Code without tests is considered incomplete. Always maintain test coverage to ensure reliability and prevent regressions.