aramalipoor / aws-cost-saver

A tiny CLI tool to help save costs in development environments when you're asleep and don't need them!
MIT License
305 stars 9 forks source link

test: Add unit tests for commands and tricks #20

Closed aramalipoor closed 4 years ago

codecov-commenter commented 4 years ago

Codecov Report

Merging #20 into master will decrease coverage by 1.44%. The diff coverage is 97.69%.

Impacted file tree graph

@@             Coverage Diff             @@
##            master      #20      +/-   ##
===========================================
- Coverage   100.00%   98.55%   -1.45%     
===========================================
  Files            1       13      +12     
  Lines           85      900     +815     
  Branches        16      168     +152     
===========================================
+ Hits            85      887     +802     
- Misses           0       11      +11     
- Partials         0        2       +2     
Impacted Files Coverage Δ
src/tricks/remove-nat-gateways.trick.ts 97.93% <94.28%> (ø)
.../tricks/snapshot-remove-elasticache-redis.trick.ts 94.23% <96.15%> (ø)
src/base-command.ts 100.00% <100.00%> (ø)
src/commands/conserve.ts 100.00% <100.00%> (ø)
src/commands/restore.ts 100.00% <100.00%> (ø)
...rc/tricks/decrease-kinesis-streams-shards.trick.ts 100.00% <100.00%> (ø)
src/tricks/shutdown-ec2-instances.trick.ts 100.00% <100.00%> (ø)
src/tricks/stop-fargate-ecs-services.trick.ts 98.60% <100.00%> (ø)
src/tricks/stop-rds-database-instances.trick.ts 100.00% <100.00%> (ø)
test/util.ts 100.00% <100.00%> (ø)
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update fcee22a...44248f4. Read the comment docs.