Closed gulfaraz closed 3 weeks ago
> test:api:all
> node --expose-gc node_modules/.bin/jest --config=jest.api.config.js --runInBand --detectOpenHandles --logHeapUsage
ts-jest[versions] (WARN) Version 4.9.5 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=2.7.0 <4.0.0). Please do not report issues in ts-jest if you are using unsupported versions.
PASS test/email/floods/email-uga-floods.test.ts (30.89s, 80 MB heap size)
Should send an email for uga floods
✓ default (7208ms)
✓ warning (7224ms)
✓ warning-to-trigger (8060ms)
✓ no-trigger (7863ms)
PASS test/email/floods/email-ssd-floods.test.ts (15.278s, 80 MB heap size)
Should send an email for ssd floods
✓ default (7580ms)
✓ no-trigger (7601ms)
PASS test/email/drought/email-uga-drought.test.ts (17.138s, 81 MB heap size)
Should send an email for uga drought
✓ triggered in january (9083ms)
✓ non triggered any month (7958ms)
PASS test/email/typhoon/email-phl-typhoon.test.ts (11.552s, 88 MB heap size)
Should send an email for phl typhoon
✓ default (11462ms)
Test Suites: 4 passed, 4 total
Tests: 9 passed, 9 total
Snapshots: 0 total
Time: 75.196s
Ran all test suites.
Describe your changes
resolves https://github.com/rodekruis/Anticipatory-Action/issues/644
Checklist before requesting a review