Skip to content

Commit

Permalink
Merge pull request #116 from atlp-rwanda/ft-test-coverage
Browse files Browse the repository at this point in the history
Ft: Increase test coverage PR
  • Loading branch information
faid-terence authored Jun 6, 2024
2 parents d8eed35 + 8fd9542 commit c3c675e
Show file tree
Hide file tree
Showing 60 changed files with 6,131 additions and 5,479 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,15 @@ env:
GOOGLE_CLIENT_ID: ${{secrets.GOOGLE_CLIENT_ID}}
GOOGLE_CLIENT_SECRET: ${{secrets.GOOGLE_CLIENT_SECRET}}

STRIPE_SECRET_KEY: ${{secrets.STRIPE_SECRET_KEYT}}
TEST_USER_EMAIL: ${{secrets.TEST_USER_EMAIL}}
TEST_USER_PASS: ${{secrets.TEST_USER_PASS}}
TEST_VENDOR_EMAIL: ${{secrets.TEST_VENDOR_EMAIL}}
TEST_VENDOR1_EMAIL: ${{secrets.TEST_VENDOR1_EMAIL}}
TEST_BUYER_EMAIL: ${{secrets.TEST_BUYER_EMAIL}}
TEST_SAMPLE_BUYER_EMAIL: ${{secrets.TEST_SAMPLE_BUYER_EMAIL}}
TEST_VENDOR2_EMAIL: ${{secrets.TEST_VENDOR2_EMAIL}}

STRIPE_SECRET_KEY: ${{secrets.STRIPE_SECRET_KEY}}

jobs:
build-lint-test-coverage:
Expand Down Expand Up @@ -48,4 +56,4 @@ jobs:
- name: Upload coverage report to Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ package-lock.json
coverage/
dist
/src/logs
.DS_Store
.DS_Store
55 changes: 55 additions & 0 deletions \
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
Merge branch 'develop' of https://github.com/atlp-rwanda/knights-ecomm-be into ft-coverage

# Conflicts:
# src/routes/index.ts
#
# It looks like you may be committing a merge.
# If this is not correct, please remove the file
# .git/MERGE_HEAD
# and try again.


# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch ft-coverage
# Your branch is up to date with 'origin/ft-coverage'.
#
# All conflicts fixed but you are still merging.
#
# Changes to be committed:
# modified: package.json
# modified: src/__test__/cart.test.ts
# new file: src/__test__/isValid.test.ts
# new file: src/__test__/login.service.test.ts
# new file: src/__test__/notification.test.ts
# modified: src/__test__/test-assets/DatabaseCleanup.ts
# new file: src/__test__/user,Route.test.ts
# new file: src/__test__/user.profile.update.service.test.ts
# new file: src/controllers/notificationControllers.ts
# modified: src/controllers/orderController.ts
# new file: src/docs/notifications.yml
# modified: src/docs/orderDocs.yml
# new file: src/entities/Notification.ts
# new file: src/entities/NotificationItem.ts
# modified: src/entities/VendorOrderItem.ts
# modified: src/helper/verify.ts
# new file: src/routes/NoficationRoutes.ts
# modified: src/routes/ProductRoutes.ts
# modified: src/routes/index.ts
# modified: src/services/adminOrderServices/updateOrder.ts
# modified: src/services/couponServices/buyerApplyCoupon.ts
# modified: src/services/couponServices/createCouponService.ts
# modified: src/services/feedbackServices/createFeedback.ts
# modified: src/services/index.ts
# new file: src/services/notificationServices/deleteNotification.ts
# new file: src/services/notificationServices/getNotifications.ts
# new file: src/services/notificationServices/updateNotification.ts
# modified: src/services/orderServices/createOrder.ts
# modified: src/services/orderServices/getOrderService.ts
# modified: src/services/orderServices/updateOrderService.ts
# modified: src/services/userServices/userDisableTwoFactorAuth.ts
# modified: src/services/userServices/userEnableTwoFactorAuth.ts
# new file: src/utils/getNotifications.ts
# new file: src/utils/sendNotification.ts
#
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
resetMocks: true,
restoreMocks: true,
collectCoverageFrom: [
'src/**/*.{ts,tsx}', // Include all JavaScript/JSX files in the src directory
'src/services/**/*.{ts,tsx}', // Include all JavaScript/JSX files in the src directory
],
coveragePathIgnorePatterns: [
'/node_modules/', // Exclude the node_modules directory
Expand Down
Loading

0 comments on commit c3c675e

Please sign in to comment.