andywer / andywer/pg-listen

Test setup improvement and more tests

Open
#7 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
635
Forks
35
PR merge metrics
No merged PRs in 30d

Description

This module has very little tests or no tests at all for some scenarios. There is need for movement from "production tested" to improved test system.
I think that this module needs following tests

Module promises:
- Module promises reconnection and Error handling. **no tests**
- Tests for continuous health checks. **no tests**
- Proper error handling **very little tests**

Other tests could be:
- "Stress testing". Trigger hundreds or thousands events in Postgres db and handle events
- Test for module imports (commonjs, es6 import)
- listen many channels with single subscriber

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.