ext-http-request-logger-dev v0.1.0
template
capsule://quake0day/[email protected]
Provides the development and testing environment for the `ext-http-request-logger` capsule, including linting configurations, test suites, and test fixtures. This capsule serves as a starting point for setting up a local development workflow.
Owns
- Test files for verifying the logger's functionality.
- ESLint configurations for code quality.
- Test fixtures (e.g., SSL certificates for HTTPS tests).
- Git ignore rules for common development artifacts.
Does not own
- The core `morgan` library logic.
- Continuous integration pipeline definitions.
AI orientation
This capsule provides the testing and linting setup for `ext-http-request-logger`. An AI agent working here should focus on writing new tests for new features, improving test coverage, updating linting rules, or maintaining test fixtures. Ensure tests are robust and cover edge cases, and that linting rules enforce good code practices without being overly restrictive. The `NO_DEPRECATION` environment variable is set for tests.
Avoid
- Modifying the core `morgan` logic in `index.js`.
- Adding production-specific code or dependencies.
Requires
library:morganfromext-http-request-logger— The core HTTP request logger library being tested.library:mocha— Test framework.library:supertest— HTTP assertions for Node.js.library:split— Split a stream into lines.library:eslint— JavaScript linter.library:nyc— Istanbul code coverage tool.
Dependencies
Capsules
ext-http-request-logger>=0.1.0
Invariants (must always hold)
- All tests must pass for the `ext-http-request-logger` capsule.
- Linting rules must be consistently applied across the codebase.
Source files (7)
Click any file to view its content; the path on the right shows where the file lands when this capsule is installed.
src/.eslintignore→dev/.eslintignoresrc/.eslintrc.yml→dev/.eslintrc.ymlsrc/.gitignore→.gitignoresrc/test/.eslintrc.yml→dev/test/.eslintrc.ymlsrc/test/fixtures/server.crt→dev/test/fixtures/server.crtsrc/test/fixtures/server.key→dev/test/fixtures/server.keysrc/test/morgan.js→dev/test/morgan.js
Plus capsule.yaml and
install.json.